youtube-dl

Another place where youtube-dl lives on
git clone git://git.oshgnacknak.de/youtube-dl.git
Log | Files | Refs | README | LICENSE

commit fc040bfd058202b0b8c9f69b12e3a2d32e8f380c
parent c8bf86d50d65ac434c7d683c21ec4d362f0cf030
Author: Philipp Hagemeister <phihag@phihag.de>
Date:   Fri, 11 Jul 2014 10:44:56 +0200

[jsinterp] Prevent mis-recognitions of local functions

Diffstat:
Myoutube_dl/jsinterp.py | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/youtube_dl/jsinterp.py b/youtube_dl/jsinterp.py @@ -99,7 +99,7 @@ class JSInterpreter(object): def extract_function(self, funcname): func_m = re.search( - (r'(?:function %s|%s\s*=\s*function)' % ( + (r'(?:function %s|[{;]%s\s*=\s*function)' % ( re.escape(funcname), re.escape(funcname))) + r'\((?P<args>[a-z,]+)\){(?P<code>[^}]+)}', self.code)