CC-2607: Abilitiy to adjust stream bitrate, type, etc from the UI
interface - dummy page "Stream Setting" page for the test - StreamSetting model is added - set owner and group as 'pypo' for liquidsoap.cfg - pypofech handle 'update_stream_setting' command
This commit is contained in:
parent
e18c0903cb
commit
4f2b2dba6d
12 changed files with 174 additions and 30 deletions
|
@ -528,7 +528,7 @@ class AirTimeApiClient(ApiClientInterface):
|
|||
return response
|
||||
|
||||
def get_stream_setting(self):
|
||||
#logger = logging.getLogger()
|
||||
logger = logging.getLogger()
|
||||
try:
|
||||
url = "http://%s:%s/%s/%s" % (self.config["base_url"], str(self.config["base_port"]), self.config["api_base"], self.config["get_stream_setting"])
|
||||
|
||||
|
@ -538,7 +538,7 @@ class AirTimeApiClient(ApiClientInterface):
|
|||
response = json.loads(response)
|
||||
except Exception, e:
|
||||
response = None
|
||||
#logger.error("Exception: %s", e)
|
||||
logger.error("Exception: %s", e)
|
||||
|
||||
return response
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue