From b6271e0709975830345f9f1437da677cdb4f0415 Mon Sep 17 00:00:00 2001 From: Rasmus Lindved Date: Fri, 26 Apr 2024 10:53:39 +0200 Subject: [PATCH] SOF-1912 Update externalId to include SegmentExternalId so that Core can find the AdLibActions when updating Segment Ranks --- src/tv2-common/helpers/graphics/pilot/PilotGraphicGenerator.ts | 2 +- src/tv2_afvd_showstyle/helpers/pieces/adlib.ts | 2 +- src/tv2_afvd_showstyle/helpers/pieces/dve.ts | 2 +- src/tv2_offtube_showstyle/cues/OfftubeAdlib.ts | 2 +- src/tv2_offtube_showstyle/cues/OfftubeDVE.ts | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/tv2-common/helpers/graphics/pilot/PilotGraphicGenerator.ts b/src/tv2-common/helpers/graphics/pilot/PilotGraphicGenerator.ts index d3a75104..2110cfb5 100644 --- a/src/tv2-common/helpers/graphics/pilot/PilotGraphicGenerator.ts +++ b/src/tv2-common/helpers/graphics/pilot/PilotGraphicGenerator.ts @@ -91,7 +91,7 @@ export abstract class PilotGraphicGenerator extends Graphic { segmentExternalId: this.segmentExternalId } return { - externalId: generateExternalId(this.core, userData), + externalId: `${this.segmentExternalId}_${generateExternalId(this.core, userData)}`, actionId: AdlibActionType.SELECT_FULL_GRAFIK, userData, userDataManifest: {}, diff --git a/src/tv2_afvd_showstyle/helpers/pieces/adlib.ts b/src/tv2_afvd_showstyle/helpers/pieces/adlib.ts index 3581b4a3..60ce82f7 100644 --- a/src/tv2_afvd_showstyle/helpers/pieces/adlib.ts +++ b/src/tv2_afvd_showstyle/helpers/pieces/adlib.ts @@ -94,7 +94,7 @@ export async function EvaluateAdLib( segmentExternalId: partDefinition.segmentExternalId } actions.push({ - externalId: generateExternalId(context.core, userData), + externalId: `${partDefinition.segmentExternalId}_${generateExternalId(context.core, userData)}`, actionId: AdlibActionType.SELECT_DVE, userData, userDataManifest: {}, diff --git a/src/tv2_afvd_showstyle/helpers/pieces/dve.ts b/src/tv2_afvd_showstyle/helpers/pieces/dve.ts index 3637ca26..551eb9ac 100644 --- a/src/tv2_afvd_showstyle/helpers/pieces/dve.ts +++ b/src/tv2_afvd_showstyle/helpers/pieces/dve.ts @@ -56,7 +56,7 @@ export function EvaluateDVE( segmentExternalId: partDefinition.segmentExternalId } actions.push({ - externalId: generateExternalId(context.core, userData), + externalId: `${partDefinition.segmentExternalId}_${generateExternalId(context.core, userData)}`, actionId: AdlibActionType.SELECT_DVE, userData, userDataManifest: {}, diff --git a/src/tv2_offtube_showstyle/cues/OfftubeAdlib.ts b/src/tv2_offtube_showstyle/cues/OfftubeAdlib.ts index 7b503ef6..7f946342 100644 --- a/src/tv2_offtube_showstyle/cues/OfftubeAdlib.ts +++ b/src/tv2_offtube_showstyle/cues/OfftubeAdlib.ts @@ -95,7 +95,7 @@ export async function OfftubeEvaluateAdLib( segmentExternalId: partDefinition.segmentExternalId } actions.push({ - externalId: generateExternalId(context.core, userData), + externalId: `${partDefinition.segmentExternalId}_${generateExternalId(context.core, userData)}`, actionId: AdlibActionType.SELECT_DVE, userData, userDataManifest: {}, diff --git a/src/tv2_offtube_showstyle/cues/OfftubeDVE.ts b/src/tv2_offtube_showstyle/cues/OfftubeDVE.ts index 1a2868e7..76e21328 100644 --- a/src/tv2_offtube_showstyle/cues/OfftubeDVE.ts +++ b/src/tv2_offtube_showstyle/cues/OfftubeDVE.ts @@ -98,7 +98,7 @@ export function OfftubeEvaluateDVE( segmentExternalId: partDefinition.segmentExternalId } actions.push({ - externalId: generateExternalId(context.core, userData), + externalId: `${partDefinition.segmentExternalId}_${generateExternalId(context.core, userData)}`, actionId: AdlibActionType.SELECT_DVE, userData, userDataManifest: {},