liquidsoap: fix error in template, station.current_source on request's id

This commit is contained in:
bkfox
2016-07-12 22:26:36 +02:00
parent 0d75f65ed4
commit a5638f0071
6 changed files with 109 additions and 43 deletions

View File

@ -53,10 +53,10 @@ class StationController:
"""
Current sound being played (retrieved by fetch)
"""
@property
def id(self):
return '{station.slug}_{station.pk}'.format(station = self.station)
current_source = None
"""
Current source object that is responsible of self.current_sound
"""
# TODO: add function to launch external program?
@ -72,6 +72,7 @@ class StationController:
"""
sources = self.station.get_sources()
for source in sources:
source.prepare()
if source.controller:
source.controller.fetch()
@ -110,7 +111,6 @@ class StationController:
pass
class SourceController:
"""
Controller of a Source. Value are usually updated directly on the
@ -138,10 +138,6 @@ class SourceController:
Current source being responsible of the current sound
"""
@property
def id(self):
return '{source.station.slug}_{source.slug}'.format(source = self.source)
__playlist = None
@property