projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
032f2f2
)
[jsinterp] Adapt to updated YouTube code generation (Fixes #7623, fixes #7624, fixes...
author
Philipp Hagemeister
<phihag@phihag.de>
Tue, 24 Nov 2015 06:45:02 +0000
(07:45 +0100)
committer
Philipp Hagemeister
<phihag@phihag.de>
Tue, 24 Nov 2015 06:45:38 +0000
(07:45 +0100)
youtube_dl/jsinterp.py
patch
|
blob
|
history
diff --git
a/youtube_dl/jsinterp.py
b/youtube_dl/jsinterp.py
index 9bc8551441cb7faf0cfb58fddc25f2183dc6da00..2191e8b8956563830245b574702dc68e6a3b8dbd 100644
(file)
--- 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')