From 27094cdf710fc58a7f5b1cf765060acbe2f22d82 Mon Sep 17 00:00:00 2001 From: nagev Date: Tue, 4 Feb 2014 20:33:10 +0000 Subject: [PATCH] Update youtube.py This fixes https://github.com/rg3/youtube-dl/issues/2304 for me. There is a $ symbol in the js function name which is valid javascript. --- youtube_dl/extractor/youtube.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/youtube_dl/extractor/youtube.py b/youtube_dl/extractor/youtube.py index 54592d174..a2c0ee9ed 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: