From 249b743dd1b4158da1352434ace8a8574cafde33 Mon Sep 17 00:00:00 2001 From: Martin Konecny Date: Mon, 5 Mar 2012 16:09:17 -0500 Subject: [PATCH] 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