From 91e1252b86fb2c6cf535e7d4f48cbbe34b4e17e2 Mon Sep 17 00:00:00 2001 From: Albert Santoni Date: Fri, 4 Dec 2015 15:05:17 -0500 Subject: [PATCH] SAAS-1239: Listener stats with Shoutcast not working --- python_apps/pypo/pypo/listenerstat.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python_apps/pypo/pypo/listenerstat.py b/python_apps/pypo/pypo/listenerstat.py index cd044eac3..f22a537eb 100644 --- a/python_apps/pypo/pypo/listenerstat.py +++ b/python_apps/pypo/pypo/listenerstat.py @@ -87,7 +87,7 @@ class ListenerStat(Thread): def get_shoutcast_stats(self, ip): url = 'http://%(host)s:%(port)s/admin.cgi?sid=1&mode=viewxml' % ip document = self.get_stream_server_xml(ip, url, is_shoutcast=True) - dom = defusedxml.parseString(document) + dom = defusedxml.minidom.parseString(document) current_listeners = dom.getElementsByTagName("CURRENTLISTENERS") timestamp = datetime.utcnow().strftime("%Y-%m-%d %H:%M:%S")