fix(playout): only exclude ended file event

The webstream schedule logic seem to rely on already ended events to check if the stream running is the right one.
We should not exclude these webstream events from the schedule.
This commit is contained in:
jo 2022-02-02 14:04:28 +01:00 committed by Kyle Robbertze
parent 348d2d81f0
commit 51378e1e6f
1 changed files with 1 additions and 1 deletions

View File

@ -81,7 +81,7 @@ class PypoPush(Thread):
media_item = media_schedule[mkey]
# Ignore track that already ended
if media_item["end"] < tnow:
if media_item["type"] == "file" and media_item["end"] < tnow:
logger.debug(f"ignoring ended media_item: {media_item}")
continue