From: Jaime Marquínez Ferrándiz Date: Tue, 4 Feb 2014 20:38:50 +0000 (+0100) Subject: [youtube] signatures: Recognize javascript functions that contain “$” (fixes #2304) X-Git-Url: https://git.cielonegro.org/gitweb.cgi?a=commitdiff_plain;h=20650c865465fb1edad0203b573e25c573efd1a7;p=youtube-dl.git [youtube] signatures: Recognize javascript functions that contain “$” (fixes #2304) --- diff --git a/youtube_dl/extractor/youtube.py b/youtube_dl/extractor/youtube.py index 54592d174..5dd2de5ee 100644 --- a/youtube_dl/extractor/youtube.py +++ b/youtube_dl/extractor/youtube.py @@ -502,7 +502,7 @@ class YoutubeIE(YoutubeBaseInfoExtractor, SubtitlesInfoExtractor): return a % b m = re.match( - r'^(?P[a-zA-Z]+)\((?P[a-z0-9,]+)\)$', expr) + r'^(?P[a-zA-Z$]+)\((?P[a-z0-9,]+)\)$', expr) if m: fname = m.group('func') if fname not in functions: