1
1
mirror of https://github.com/ytdl-org/youtube-dl synced 2024-11-30 12:32:56 +01:00

[youtube] signatures: Recognize javascript functions that contain “$” (fixes #2304)

This commit is contained in:
Jaime Marquínez Ferrándiz 2014-02-04 21:38:50 +01:00
parent 56dced2670
commit 20650c8654

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: