Browse Source

[youtube] Fix extraction (closes #11663, #11664)

totalwebcasting
Sergey M․ 8 years ago
parent
commit
d1aeacd9bf
No known key found for this signature in database GPG Key ID: 2C393E0F18A9236D
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      youtube_dl/jsinterp.py

+ 1
- 1
youtube_dl/jsinterp.py View File

@ -213,7 +213,7 @@ class JSInterpreter(object):
def extract_object(self, objname):
obj = {}
obj_m = re.search(
(r'(?:var\s+)?%s\s*=\s*\{' % re.escape(objname)) +
(r'(?<!this\.)%s\s*=\s*\{' % re.escape(objname)) +
r'\s*(?P<fields>([a-zA-Z$0-9]+\s*:\s*function\(.*?\)\s*\{.*?\}(?:,\s*)?)*)' +
r'\}\s*;',
self.code)


Loading…
Cancel
Save