Browse Source

[jsinterp] Adapt to updated YouTube code generation (Fixes #7623, fixes #7624, fixes #7625, fixes #7626)

totalwebcasting
Philipp Hagemeister 9 years ago
parent
commit
4c7d816dd7
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      youtube_dl/jsinterp.py

+ 1
- 1
youtube_dl/jsinterp.py View File

@ -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')


Loading…
Cancel
Save