mirror of
https://github.com/ytdl-org/youtube-dl.git
synced 2025-07-05 12:36:17 -07:00
parent
ae8ba2c319
commit
07af47960f
2 changed files with 13 additions and 12 deletions
|
@ -1569,9 +1569,7 @@ class YoutubeIE(YoutubeBaseInfoExtractor):
|
|||
r'\bc\s*&&\s*[a-zA-Z0-9]+\.set\([^,]+\s*,\s*\([^)]*\)\s*\(\s*(?P<sig>[a-zA-Z0-9$]+)\('),
|
||||
jscode, 'Initial JS player signature function name', group='sig')
|
||||
|
||||
# temporary (please) hack for player 6ed0d907 #32314
|
||||
ah = 'var AH={LR:function(a,b){var c=a[0];a[0]=a[b%a.length];a[b%a.length]=c},QV:function(a){a.reverse()},pO:function(a,b){a.splice(0,b)}};'
|
||||
jsi = JSInterpreter(ah + jscode)
|
||||
jsi = JSInterpreter(jscode)
|
||||
|
||||
initial_function = jsi.extract_function(funcname)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue