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:
parent
56dced2670
commit
27094cdf71
@ -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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user