diff --git a/bin/partyfuse.py b/bin/partyfuse.py index 35ebe448..a7c5ca76 100755 --- a/bin/partyfuse.py +++ b/bin/partyfuse.py @@ -390,13 +390,12 @@ class Gateway(object): return r.read() - def parse_jls(self, datasrc): + def parse_jls(self, sck): rsp = b"" while True: - buf = datasrc.read(1024 * 32) + buf = sck.read(1024 * 32) if not buf: break - rsp += buf rsp = json.loads(rsp.decode("utf-8")) @@ -414,24 +413,24 @@ class Gateway(object): return ret - def parse_html(self, datasrc): + def parse_html(self, sck): ret = [] - remainder = b"" + rem = b"" ptn = re.compile( r'^