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.
This commit is contained in:
nagev 2014-02-04 20:33:10 +00:00
parent 56dced2670
commit 27094cdf71

View File

@ -502,7 +502,7 @@ class YoutubeIE(YoutubeBaseInfoExtractor, SubtitlesInfoExtractor):
return a % b
m = re.match(
r'^(?P<func>[a-zA-Z]+)\((?P<args>[a-z0-9,]+)\)$', expr)
r'^(?P<func>[$a-zA-Z]+)\((?P<args>[a-z0-9,]+)\)$', expr)
if m:
fname = m.group('func')
if fname not in functions: