CC-2745: Show status of liquidsoap/icecast connection on Stream
Settings page - temp commit
This commit is contained in:
parent
d8c6b722ac
commit
efbd2f53d0
5 changed files with 15 additions and 11 deletions
|
@ -577,7 +577,9 @@ class AirTimeApiClient(ApiClientInterface):
|
|||
url = "http://%s:%s/%s/%s" % (self.config["base_url"], str(self.config["base_port"]), self.config["api_base"], self.config["update_liquidsoap_error"])
|
||||
|
||||
url = url.replace("%%api_key%%", self.config["api_key"])
|
||||
url = url.replace("%%error_msg%%", error_msg)
|
||||
error_msg = error_msg.replace('/', ' ')
|
||||
encoded_msg = urllib.quote(error_msg, '')
|
||||
url = url.replace("%%error_msg%%", encoded_msg)
|
||||
url = url.replace("%%stream_id%%", stream_id)
|
||||
logger.debug(url)
|
||||
req = urllib2.Request(url)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue