CC-4843: Make listener stats work with SaaS in 2.3.x-saas branch
-fixed
This commit is contained in:
parent
dbaf7d9b4b
commit
74877b289e
|
@ -48,8 +48,13 @@ class ListenerStat(Thread):
|
||||||
|
|
||||||
|
|
||||||
def get_icecast_stats(self, ip):
|
def get_icecast_stats(self, ip):
|
||||||
url = 'http://%(host)s:%(port)s/admin/stats.xml' % ip
|
document = None
|
||||||
document = self.get_stream_server_xml(ip, url)
|
if "airtime.pro" in ip["host"].lower():
|
||||||
|
url = 'http://%(host)s:%(port)s/stats.xsl' % ip
|
||||||
|
document = self.get_stream_server_xml(ip, url)
|
||||||
|
else:
|
||||||
|
url = 'http://%(host)s:%(port)s/admin/stats.xml' % ip
|
||||||
|
document = self.get_stream_server_xml(ip, url)
|
||||||
dom = xml.dom.minidom.parseString(document)
|
dom = xml.dom.minidom.parseString(document)
|
||||||
sources = dom.getElementsByTagName("source")
|
sources = dom.getElementsByTagName("source")
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue