aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorGravatar Christopher Rosell <chrippa@tanuki.se>2012-04-19 23:10:11 +0200
committerGravatar Christopher Rosell <chrippa@tanuki.se>2012-04-19 23:10:11 +0200
commit0eb8969b0667fb641356a5734126b645aa211c0f (patch)
treea6143f9f26618c08e30223e41f03cb03addf3663 /src
parent818c0570b6869fd3d0c3b1167ae668919f465cc1 (diff)
livestreamer.plugins.ustreamtv: A more proper fix for AMF parsing.
Diffstat (limited to 'src')
-rw-r--r--src/livestreamer/plugins/ustreamtv.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/livestreamer/plugins/ustreamtv.py b/src/livestreamer/plugins/ustreamtv.py
index 01ae837..54ea021 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}\x02\x00.(.+?)\x00").format(key)
+ pattern = ("{0}\x02..(.*?)\x00").format(key)
match = re.search(bytes(pattern, "ascii"), data)
if match:
return str(match.group(1), "ascii")