From: Philipp Hagemeister Date: Tue, 24 Nov 2015 06:45:02 +0000 (+0100) Subject: [jsinterp] Adapt to updated YouTube code generation (Fixes #7623, fixes #7624, fixes... X-Git-Url: http://git.oshgnacknak.de/?a=commitdiff_plain;h=4c7d816dd70a7b10dc096d815da55d41c46f9b59;p=youtube-dl [jsinterp] Adapt to updated YouTube code generation (Fixes #7623, fixes #7624, fixes #7625, fixes #7626) --- 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([a-zA-Z$0-9]+\s*:\s*function\(.*?\)\s*\{.*?\})*)' + + r'\s*(?P([a-zA-Z$0-9]+\s*:\s*function\(.*?\)\s*\{.*?\}(?:,\s*)?)*)' + r'\}\s*;', self.code) fields = obj_m.group('fields')