From 51378e1e6fed7f58d7c6e5b10d542a0c87fda438 Mon Sep 17 00:00:00 2001 From: jo Date: Wed, 2 Feb 2022 14:04:28 +0100 Subject: [PATCH] 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. --- playout/libretime_playout/pypopush.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/playout/libretime_playout/pypopush.py b/playout/libretime_playout/pypopush.py index ad24e4dfb..7a7cdc03b 100644 --- a/playout/libretime_playout/pypopush.py +++ b/playout/libretime_playout/pypopush.py @@ -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