Apply suggestions from code review
This commit is contained in:
parent
d2ae1d08a1
commit
8765808cd2
@ -175,8 +175,8 @@ _NSIG_TESTS = [
|
||||
'7X-he4jjvMx7BCX', 'sViSydX8IHtdWA',
|
||||
),
|
||||
(
|
||||
'https://www.youtube.com/s/player/20dfca59/player_ias.vflset/en_US/base.js',
|
||||
'-fLCxedkAk4LUTK2', 'O8kfRq1y1eyHGw',
|
||||
'https://www.youtube.com/s/player/20dfca59/player_ias.vflset/en_US/base.js',
|
||||
'-fLCxedkAk4LUTK2', 'O8kfRq1y1eyHGw',
|
||||
),
|
||||
]
|
||||
|
||||
|
@ -1676,7 +1676,7 @@ class YoutubeIE(YoutubeBaseInfoExtractor):
|
||||
\.\s*get\s*\(\s*(?(b)(?P=b)|"n{1,2}")(?:\s*\)){2}\s*
|
||||
&&\s*\(\s*(?(c)(?P=c)|(?P=b))
|
||||
)
|
||||
)\s*=\s*
|
||||
)\s*=\s*
|
||||
(?P<nfunc>[a-zA-Z_$][\w$]*)(?:\s*\[(?P<idx>\d+)\])?\s*\(\s*[\w$]+\s*\)
|
||||
''', jscode, 'Initial JS player n function name', group=('nfunc', 'idx'),
|
||||
default=(None, None))
|
||||
|
Loading…
Reference in New Issue
Block a user