Update jsinterp.py
authortinybug <tinybug1991@gmail.com>
Fri, 21 Nov 2014 09:09:22 +0000 (17:09 +0800)
committertinybug <tinybug1991@gmail.com>
Fri, 21 Nov 2014 09:09:22 +0000 (17:09 +0800)
http://s.ytimg.com/yts/jsbin/html5player-zh_HK-vfl1NK6PR/html5player.js
fix raise ExtractorError

youtube_dl/jsinterp.py

index c40cd376d120f2063bb4cf6958ca4cf701db1f00..b4617fbad0fc40323a129ce1218f9f97590c89bb 100644 (file)
@@ -61,7 +61,7 @@ class JSInterpreter(object):
             pass
 
         m = re.match(
-            r'^(?P<var>[a-zA-Z0-9_]+)\.(?P<member>[^(]+)(?:\(+(?P<args>[^()]*)\))?$',
+            r'^(?P<var>[$a-zA-Z0-9_]+)\.(?P<member>[^(]+)(?:\(+(?P<args>[^()]*)\))?$',
             expr)
         if m:
             variable = m.group('var')