Pypo: Live Streaming in first show will block the next show's first track

-fixed. Was caused by clashing keys
This commit is contained in:
Martin Konecny 2013-05-30 14:02:05 -04:00
parent 13f7c3941d
commit 6fddabdd7c
3 changed files with 10 additions and 6 deletions

View file

@ -61,8 +61,10 @@ class PypoLiqQueue(Thread):
schedule_deque.append(media_schedule[i])
if len(keys):
time_until_next_play = self.date_interval_to_seconds(\
keys[0] - datetime.utcnow())
time_until_next_play = self.date_interval_to_seconds(
media_schedule[keys[0]]['start'] -
datetime.utcnow())
else:
time_until_next_play = None