File tree Expand file tree Collapse file tree 3 files changed +7
-7
lines changed
packages/job-worker/src/playout/lookahead Expand file tree Collapse file tree 3 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ import { JobContext } from '../../jobs/index.js'
1313import { PartAndPieces , PieceInstanceWithObjectMap } from './util.js'
1414import { deserializePieceTimelineObjectsBlob } from '@sofie-automation/corelib/dist/dataModel/Piece'
1515import { ReadonlyDeep , SetRequired } from 'type-fest'
16- import { computeLookaheadObject } from './lookaheadOffset'
16+ import { computeLookaheadObject } from './lookaheadOffset.js '
1717
1818export function getBestPieceInstanceId ( piece : ReadonlyDeep < PieceInstance > ) : string {
1919 if ( ! piece . isTemporary || piece . partInstanceId ) {
Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ import { LookaheadTimelineObject } from './findObjects.js'
2424import { hasPieceInstanceDefinitelyEnded } from '../timeline/lib.js'
2525import { DBPart } from '@sofie-automation/corelib/dist/dataModel/Part'
2626import { ReadonlyDeep } from 'type-fest'
27- import { filterPieceInstancesForNextPartWithOffset } from './lookaheadOffset'
27+ import { filterPieceInstancesForNextPartWithOffset } from './lookaheadOffset.js '
2828
2929const LOOKAHEAD_OBJ_PRIORITY = 0.1
3030
@@ -112,7 +112,7 @@ export async function getLookeaheadObjects(
112112 nowInPart : partInstancesInfo0 . current . nowInPart ,
113113 allPieces : getPrunedEndedPieceInstances ( partInstancesInfo0 . current ) ,
114114 calculatedTimings : partInstancesInfo0 . current . calculatedTimings ,
115- } )
115+ } )
116116 : undefined ,
117117 next : partInstancesInfo0 . next
118118 ? removeInfiniteContinuations ( {
@@ -124,7 +124,7 @@ export async function getLookeaheadObjects(
124124 playoutModel . playlist . nextTimeOffset
125125 ) ,
126126 calculatedTimings : partInstancesInfo0 . next . calculatedTimings ,
127- } )
127+ } )
128128 : undefined ,
129129 }
130130
Original file line number Diff line number Diff line change @@ -2,8 +2,8 @@ import { PartInstanceId } from '@sofie-automation/corelib/dist/dataModel/Ids'
22import { TimelineObjType } from '@sofie-automation/corelib/dist/dataModel/Timeline'
33import { literal } from '@sofie-automation/corelib/dist/lib'
44import { protectString , unprotectString } from '@sofie-automation/corelib/dist/protectedString'
5- import { getBestPieceInstanceId , LookaheadTimelineObject } from './findObjects'
6- import { PartAndPieces , PieceInstanceWithObjectMap } from './util'
5+ import { getBestPieceInstanceId , LookaheadTimelineObject } from './findObjects.js '
6+ import { PartAndPieces , PieceInstanceWithObjectMap } from './util.js '
77import { TimelineEnable } from 'superfly-timeline'
88import { TimelineObjectCoreExt } from '@sofie-automation/blueprints-integration'
99import { PieceInstanceWithTimings } from '@sofie-automation/corelib/dist/playout/processAndPrune'
@@ -177,7 +177,7 @@ export function filterPieceInstancesForNextPartWithOffset(
177177 for ( const p of pieces ) {
178178 const layer = p . piece . outputLayerId || '__noLayer__'
179179 if ( ! layers . has ( layer ) ) layers . set ( layer , [ ] )
180- layers . get ( layer ) ! . push ( p )
180+ layers . get ( layer ) ? .push ( p )
181181 }
182182
183183 const result : PieceInstanceWithTimings [ ] = [ ]
You can’t perform that action at this time.
0 commit comments