From 818c0570b6869fd3d0c3b1167ae668919f465cc1 Mon Sep 17 00:00:00 2001 From: Christopher Rosell Date: Thu, 19 Apr 2012 22:20:29 +0200 Subject: livestreamer.plugins.ustreamtv: Fix AMF parsing. --- src/livestreamer/plugins/ustreamtv.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/livestreamer/plugins/ustreamtv.py b/src/livestreamer/plugins/ustreamtv.py index a30e695..01ae837 100644 --- a/src/livestreamer/plugins/ustreamtv.py +++ b/src/livestreamer/plugins/ustreamtv.py @@ -25,7 +25,7 @@ class UStreamTV(Plugin): def _get_streams(self): def get_amf_value(data, key): - pattern = ("{0}\W\W\W(.+?)\x00").format(key) + pattern = ("{0}\x02\x00.(.+?)\x00").format(key) match = re.search(bytes(pattern, "ascii"), data) if match: return str(match.group(1), "ascii") -- cgit v1.2.3