|
@@ -3130,7 +3130,8 @@ class YoutubeIE(YoutubeBaseInfoExtractor):
|
|
|
|
|
|
def _extract_n_function_name(self, jscode):
|
|
|
funcname, idx = self._search_regex(
|
|
|
- r'\.get\("n"\)\)&&\(b=(?P<nfunc>[a-zA-Z0-9$]+)(?:\[(?P<idx>\d+)\])?\([a-zA-Z0-9]\)',
|
|
|
+ r'''(?x)(?:\.get\("n"\)\)&&\(b=|b=String\.fromCharCode\(110\),c=a\.get\(b\)\)&&\(c=)
|
|
|
+ (?P<nfunc>[a-zA-Z0-9$]+)(?:\[(?P<idx>\d+)\])?\([a-zA-Z0-9]\)''',
|
|
|
jscode, 'Initial JS player n function name', group=('nfunc', 'idx'))
|
|
|
if not idx:
|
|
|
return funcname
|