diff options
author | Philipp Hagemeister <phihag@phihag.de> | 2015-11-24 07:45:02 +0100 |
---|---|---|
committer | Philipp Hagemeister <phihag@phihag.de> | 2015-11-24 07:45:38 +0100 |
commit | 4c7d816dd70a7b10dc096d815da55d41c46f9b59 (patch) | |
tree | 86ed6b0a9c364ad2d9c2207027c439a8e3a052ce /youtube_dl | |
parent | 032f2f260f7ef7a04d1499b26b97c1643fe993b0 (diff) |
[jsinterp] Adapt to updated YouTube code generation (Fixes #7623, fixes #7624, fixes #7625, fixes #7626)
Diffstat (limited to 'youtube_dl')
-rw-r--r-- | youtube_dl/jsinterp.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/youtube_dl/jsinterp.py b/youtube_dl/jsinterp.py index 9bc855144..2191e8b89 100644 --- a/youtube_dl/jsinterp.py +++ b/youtube_dl/jsinterp.py @@ -214,7 +214,7 @@ class JSInterpreter(object): obj = {} obj_m = re.search( (r'(?:var\s+)?%s\s*=\s*\{' % re.escape(objname)) + - r'\s*(?P<fields>([a-zA-Z$0-9]+\s*:\s*function\(.*?\)\s*\{.*?\})*)' + + r'\s*(?P<fields>([a-zA-Z$0-9]+\s*:\s*function\(.*?\)\s*\{.*?\}(?:,\s*)?)*)' + r'\}\s*;', self.code) fields = obj_m.group('fields') |