Browse Source

fix block playout build bug (#2642)

pull/2643/head
Jason Dove 2 months ago committed by GitHub
parent
commit
48b1aa3e64
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 12
      ErsatzTV.Core/Scheduling/BlockScheduling/BlockPlayoutFillerBuilder.cs

12
ErsatzTV.Core/Scheduling/BlockScheduling/BlockPlayoutFillerBuilder.cs

@ -65,12 +65,16 @@ public class BlockPlayoutFillerBuilder( @@ -65,12 +65,16 @@ public class BlockPlayoutFillerBuilder(
var collectionEnumerators = new Dictionary<CollectionKey, IMediaCollectionEnumerator>();
// history doesn't have an equivalent to "remove before"
// so for break content, let's remove all corresponding items that should be removed
var itemsForBreakContent = allItems.Where(x => x.FinishOffset >= removeBefore).ToList();
var breakContentResult = await AddBreakContent(
playout,
referenceData,
mode,
collectionEnumerators,
allItems,
itemsForBreakContent,
filteredExistingHistory,
result.AddedHistory,
cancellationToken);
@ -92,12 +96,16 @@ public class BlockPlayoutFillerBuilder( @@ -92,12 +96,16 @@ public class BlockPlayoutFillerBuilder(
.ToList();
allItems.AddRange(result.AddedItems);
// history doesn't have an equivalent to "remove before"
// so for break content, let's remove all corresponding items that should be removed
itemsForBreakContent = allItems.Where(x => x.FinishOffset >= removeBefore).ToList();
result = await AddDefaultFiller(
playout,
referenceData,
result,
collectionEnumerators,
allItems,
itemsForBreakContent,
filteredExistingHistory,
cancellationToken);

Loading…
Cancel
Save