forked from rc/aircox
fix minor
This commit is contained in:
parent
012e2dd9d0
commit
985353d238
|
@ -20,12 +20,16 @@ import aircox.liquidsoap.utils as utils
|
||||||
|
|
||||||
|
|
||||||
class StationConfig:
|
class StationConfig:
|
||||||
|
"""
|
||||||
|
Configuration and playlist generator for a station.
|
||||||
|
"""
|
||||||
controller = None
|
controller = None
|
||||||
|
|
||||||
def __init__ (self, station):
|
def __init__ (self, station):
|
||||||
self.controller = utils.Controller(station, False)
|
self.controller = utils.Controller(station, False)
|
||||||
|
|
||||||
def handle (self, options):
|
def handle (self, options):
|
||||||
|
os.makedirs(self.controller.path, exist_ok = True)
|
||||||
if options.get('config') or options.get('all'):
|
if options.get('config') or options.get('all'):
|
||||||
self.make_config()
|
self.make_config()
|
||||||
if options.get('streams') or options.get('all'):
|
if options.get('streams') or options.get('all'):
|
||||||
|
|
|
@ -24,7 +24,7 @@ class Output (models.Model):
|
||||||
settings = models.TextField(
|
settings = models.TextField(
|
||||||
_('output settings'),
|
_('output settings'),
|
||||||
help_text = _('list of comma separated params available; '
|
help_text = _('list of comma separated params available; '
|
||||||
'this is put in the output config as raw text'),
|
'this is put in the output config as raw code'),
|
||||||
blank = True, null = True
|
blank = True, null = True
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user