mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2025-10-28 21:20:48 +00:00
@@ -2652,9 +2652,14 @@ class YoutubeIE(YoutubeBaseInfoExtractor):
|
||||
|
||||
if self.get_param('youtube_print_sig_code'):
|
||||
self.to_screen(f'Extracted nsig function from {player_id}:\n{func_code[1]}\n')
|
||||
|
||||
func = jsi.extract_function_from_code(*func_code)
|
||||
return lambda s: func([s])
|
||||
|
||||
def inner(s):
|
||||
ret = func([s])
|
||||
if ret.startswith('enhanced_except_'):
|
||||
raise ExtractorError('Signature function returned an exception')
|
||||
return ret
|
||||
return inner
|
||||
|
||||
def _extract_signature_timestamp(self, video_id, player_url, ytcfg=None, fatal=False):
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user