CC-5342 : Pypo: Webstream disconnection happens when any changes on Now playing page

This commit is contained in:
Naomi 2013-09-26 17:03:18 -04:00
parent 52b7dbb226
commit 9f38e5a9c6

View file

@ -181,7 +181,7 @@ class PypoLiquidsoap():
#handle webstreams #handle webstreams
current_stream_id = self.telnet_liquidsoap.get_current_stream_id() current_stream_id = self.telnet_liquidsoap.get_current_stream_id()
if scheduled_now_webstream: if scheduled_now_webstream:
if current_stream_id != scheduled_now_webstream[0]: if int(current_stream_id) != int(scheduled_now_webstream[0]["row_id"]):
self.play(scheduled_now_webstream[0]) self.play(scheduled_now_webstream[0])
elif current_stream_id != "-1": elif current_stream_id != "-1":
#something is playing and it shouldn't be. #something is playing and it shouldn't be.