1
0
mirror of https://github.com/yt-dlp/yt-dlp.git synced 2025-06-07 12:18:51 +00:00

[ie/youtube] Improve signature extraction debug output (#13327)

Authored by: bashonly
This commit is contained in:
bashonly 2025-05-30 18:16:47 -05:00 committed by GitHub
parent 6d265388c6
commit d30a49742c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -3398,8 +3398,15 @@ class YoutubeIE(YoutubeBaseInfoExtractor):
self._decrypt_signature(encrypted_sig, video_id, player_url),
)
except ExtractorError as e:
self.report_warning('Signature extraction failed: Some formats may be missing',
video_id=video_id, only_once=True)
self.report_warning(
f'Signature extraction failed: Some formats may be missing\n'
f' player = {player_url}\n'
f' {bug_reports_message(before="")}',
video_id=video_id, only_once=True)
self.write_debug(
f'{video_id}: Signature extraction failure info:\n'
f' encrypted sig = {encrypted_sig}\n'
f' player = {player_url}')
self.write_debug(e, only_once=True)
continue