From a4f528021f0f917db1074930d2b67e653ef02ae1 Mon Sep 17 00:00:00 2001 From: Martin Konecny Date: Mon, 5 Mar 2012 16:01:58 -0500 Subject: [PATCH 1/2] CC-3384: Pypo On-Air is off and streaming is not playing on every other songs in a show. -fixed, but there is another small problem --- python_apps/pypo/pypopush.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python_apps/pypo/pypopush.py b/python_apps/pypo/pypopush.py index db153cd36..046937fd1 100644 --- a/python_apps/pypo/pypopush.py +++ b/python_apps/pypo/pypopush.py @@ -99,7 +99,7 @@ class PypoPush(Thread): track, so let's push it now so that Liquidsoap can start playing it immediately after (and prepare crossfades if need be). """ - telnet_to_liquidsoap(media_item) + self.telnet_to_liquidsoap(media_item) self.last_end_time = media_item["end"] else: """ From 249b743dd1b4158da1352434ace8a8574cafde33 Mon Sep 17 00:00:00 2001 From: Martin Konecny Date: Mon, 5 Mar 2012 16:09:17 -0500 Subject: [PATCH 2/2] CC-3384: Pypo On-Air is off and streaming is not playing on every other songs in a show. -temporary solution to make sure we don't push same song multiple times. --- python_apps/pypo/pypopush.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/python_apps/pypo/pypopush.py b/python_apps/pypo/pypopush.py index 046937fd1..df5b4c052 100644 --- a/python_apps/pypo/pypopush.py +++ b/python_apps/pypo/pypopush.py @@ -83,6 +83,11 @@ class PypoPush(Thread): if self.push_to_liquidsoap(media_item): self.logger.debug("Pushed to liquidsoap, updating 'played' status.") + """ + Temporary solution to make sure we don't push the same track multiple times. + """ + del media[key] + currently_on_air = True self.liquidsoap_state_play = True