From 2901a3c6416cc928586ec4b6aeec8fc78462de0c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Anders=20Frederik=20J=C3=B8rgensen?= Date: Mon, 6 Nov 2023 14:06:55 +0100 Subject: [PATCH] fix: Added missing piece metadata.type properties to clear commands, viz routing and background loops. --- src/tv2_afvd_showstyle/getRundown.ts | 3 +++ .../helpers/pieces/clearGrafiks.ts | 7 +++++-- .../helpers/pieces/graphicBackgroundLoop.ts | 21 +++++++++++++++---- .../helpers/pieces/routing.ts | 6 +++++- 4 files changed, 30 insertions(+), 7 deletions(-) diff --git a/src/tv2_afvd_showstyle/getRundown.ts b/src/tv2_afvd_showstyle/getRundown.ts index a3e3a24c..3e51765d 100644 --- a/src/tv2_afvd_showstyle/getRundown.ts +++ b/src/tv2_afvd_showstyle/getRundown.ts @@ -179,6 +179,9 @@ class GlobalAdLibPiecesGenerator { } }) ] + }, + metaData: { + type: Tv2PieceType.UNKNOWN } } } diff --git a/src/tv2_afvd_showstyle/helpers/pieces/clearGrafiks.ts b/src/tv2_afvd_showstyle/helpers/pieces/clearGrafiks.ts index 8d4ab763..ab49e90c 100644 --- a/src/tv2_afvd_showstyle/helpers/pieces/clearGrafiks.ts +++ b/src/tv2_afvd_showstyle/helpers/pieces/clearGrafiks.ts @@ -9,8 +9,8 @@ import { CueDefinitionClearGrafiks, getDefaultOut, getTimingEnable, literal, Sho import { SharedGraphicLLayer, SharedOutputLayer } from 'tv2-constants' import { Tv2OutputLayer } from '../../../tv2-constants/tv2-output-layer' import { Tv2PieceType } from '../../../tv2-constants/tv2-piece-type' -import { GalleryBlueprintConfig } from '../../../tv2_afvd_showstyle/helpers/config' -import { SourceLayer } from '../../../tv2_afvd_showstyle/layers' +import { SourceLayer } from '../../layers' +import { GalleryBlueprintConfig } from '../config' export function EvaluateClearGrafiks( context: ShowStyleContext, @@ -46,6 +46,9 @@ export function EvaluateClearGrafiks( virtual: true, content: { timelineObjects: [] + }, + metaData: { + type: Tv2PieceType.COMMAND } }) }) diff --git a/src/tv2_afvd_showstyle/helpers/pieces/graphicBackgroundLoop.ts b/src/tv2_afvd_showstyle/helpers/pieces/graphicBackgroundLoop.ts index 383d9b95..851f897f 100644 --- a/src/tv2_afvd_showstyle/helpers/pieces/graphicBackgroundLoop.ts +++ b/src/tv2_afvd_showstyle/helpers/pieces/graphicBackgroundLoop.ts @@ -9,6 +9,7 @@ import { TV2ShowStyleConfig } from 'tv2-common' import { SharedGraphicLLayer, SharedOutputLayer } from 'tv2-constants' +import { Tv2PieceType } from '../../../tv2-constants/tv2-piece-type' import { SourceLayer } from '../../layers' export function EvaluateCueBackgroundLoop( @@ -38,7 +39,10 @@ export function EvaluateCueBackgroundLoop( path, ignoreMediaObjectStatus: true, timelineObjects: dveLoopGenerator.createDveLoopTimelineObject(fileName) - }) + }), + metaData: { + type: Tv2PieceType.UNKNOWN + } }) } else { result.pieces.push({ @@ -55,7 +59,10 @@ export function EvaluateCueBackgroundLoop( path, ignoreMediaObjectStatus: true, timelineObjects: dveLoopGenerator.createDveLoopTimelineObject(fileName) - }) + }), + metaData: { + type: Tv2PieceType.UNKNOWN + } }) } } else { @@ -73,7 +80,10 @@ export function EvaluateCueBackgroundLoop( path: parsedCue.backgroundLoop, ignoreMediaObjectStatus: true, timelineObjects: fullLoopTimeline(context.config, parsedCue) - }) + }), + metaData: { + type: Tv2PieceType.UNKNOWN + } }) } else { result.pieces.push({ @@ -90,7 +100,10 @@ export function EvaluateCueBackgroundLoop( path: parsedCue.backgroundLoop, ignoreMediaObjectStatus: true, timelineObjects: fullLoopTimeline(context.config, parsedCue) - }) + }), + metaData: { + type: Tv2PieceType.UNKNOWN + } }) } } diff --git a/src/tv2_afvd_showstyle/helpers/pieces/routing.ts b/src/tv2_afvd_showstyle/helpers/pieces/routing.ts index 0b6b632d..16f38f87 100644 --- a/src/tv2_afvd_showstyle/helpers/pieces/routing.ts +++ b/src/tv2_afvd_showstyle/helpers/pieces/routing.ts @@ -9,6 +9,7 @@ import { } from 'tv2-common' import { SharedOutputLayer, SwitcherAuxLLayer } from 'tv2-constants' import _ = require('underscore') +import { Tv2PieceType } from '../../../tv2-constants/tv2-piece-type' import { SourceLayer } from '../../layers' export function EvaluateCueRouting( @@ -52,7 +53,10 @@ export function EvaluateCueRouting( } }) ]) - }) + }), + metaData: { + type: Tv2PieceType.UNKNOWN + } }) return result }