Skip to content

Commit

Permalink
fix: Added missing piece metadata.type properties to clear commands, …
Browse files Browse the repository at this point in the history
…viz routing and background loops.
  • Loading branch information
KvelaGorrrrnio committed Nov 6, 2023
1 parent 5d69682 commit 2901a3c
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 7 deletions.
3 changes: 3 additions & 0 deletions src/tv2_afvd_showstyle/getRundown.ts
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,9 @@ class GlobalAdLibPiecesGenerator {
}
})
]
},
metaData: {
type: Tv2PieceType.UNKNOWN
}
}
}
Expand Down
7 changes: 5 additions & 2 deletions src/tv2_afvd_showstyle/helpers/pieces/clearGrafiks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<GalleryBlueprintConfig>,
Expand Down Expand Up @@ -46,6 +46,9 @@ export function EvaluateClearGrafiks(
virtual: true,
content: {
timelineObjects: []
},
metaData: {
type: Tv2PieceType.COMMAND
}
})
})
Expand Down
21 changes: 17 additions & 4 deletions src/tv2_afvd_showstyle/helpers/pieces/graphicBackgroundLoop.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down Expand Up @@ -38,7 +39,10 @@ export function EvaluateCueBackgroundLoop(
path,
ignoreMediaObjectStatus: true,
timelineObjects: dveLoopGenerator.createDveLoopTimelineObject(fileName)
})
}),
metaData: {
type: Tv2PieceType.UNKNOWN
}
})
} else {
result.pieces.push({
Expand All @@ -55,7 +59,10 @@ export function EvaluateCueBackgroundLoop(
path,
ignoreMediaObjectStatus: true,
timelineObjects: dveLoopGenerator.createDveLoopTimelineObject(fileName)
})
}),
metaData: {
type: Tv2PieceType.UNKNOWN
}
})
}
} else {
Expand All @@ -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({
Expand All @@ -90,7 +100,10 @@ export function EvaluateCueBackgroundLoop(
path: parsedCue.backgroundLoop,
ignoreMediaObjectStatus: true,
timelineObjects: fullLoopTimeline(context.config, parsedCue)
})
}),
metaData: {
type: Tv2PieceType.UNKNOWN
}
})
}
}
Expand Down
6 changes: 5 additions & 1 deletion src/tv2_afvd_showstyle/helpers/pieces/routing.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down Expand Up @@ -52,7 +53,10 @@ export function EvaluateCueRouting(
}
})
])
})
}),
metaData: {
type: Tv2PieceType.UNKNOWN
}
})
return result
}

0 comments on commit 2901a3c

Please sign in to comment.