CC-2745: Show status of liquidsoap/icecast connection on Stream

Settings page

- temp commit
This commit is contained in:
James 2011-10-11 14:40:30 -04:00
parent d8c6b722ac
commit efbd2f53d0
5 changed files with 15 additions and 11 deletions

View file

@ -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)