Skip to content

Commit

Permalink
[youtube] Fix extraction (closes #11663, #11664)
Browse files Browse the repository at this point in the history
  • Loading branch information
dstftw committed Jan 10, 2017
1 parent 366b759 commit d1aeacd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion youtube_dl/jsinterp.py
Expand Up @@ -213,7 +213,7 @@ def interpret_expression(self, expr, local_vars, allow_recursion):
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)
Expand Down

0 comments on commit d1aeacd

Please sign in to comment.