work on liquidsoap script (fix & fade) + fix errors in monitor

This commit is contained in:
bkfox
2016-08-02 19:46:31 +02:00
parent d62a47ffe5
commit f5dbc93f7f
9 changed files with 126 additions and 65 deletions

View File

@ -27,7 +27,6 @@ class Monitor:
"""
def __init__(self, station, **kwargs):
Log.objects.all().delete()
self.station = station
self.__dict__.update(kwargs)
@ -169,7 +168,7 @@ class Monitor:
)
sounds = [
sound.related.path for sound in sounds
if not sound.related.removed
if sound.related.type != programs.Sound.Type.removed
]
return (
@ -229,8 +228,6 @@ class Monitor:
if next_diff and not dealer.controller.active and \
next_diff.start <= now:
dealer.controller.active = True
for source in station.get_sources():
source.controller.skip()
self.log(
type = Log.Type.play,
source = dealer.id_,