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

pull/2/head
Jaime Marquínez Ferrándiz 11 years ago
parent 56dced2670
commit 20650c8654

@ -502,7 +502,7 @@ class YoutubeIE(YoutubeBaseInfoExtractor, SubtitlesInfoExtractor):
return a % b return a % b
m = re.match( 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: if m:
fname = m.group('func') fname = m.group('func')
if fname not in functions: if fname not in functions:

Loading…
Cancel
Save