1
0
mirror of https://github.com/yt-dlp/yt-dlp.git synced 2025-07-17 18:58:35 +00:00

[ie/youtube] Log bad playability statuses of player responses (#13647)

Authored by: coletdjnz
This commit is contained in:
coletdjnz 2025-07-09 18:29:54 +12:00 committed by GitHub
parent fd36b8f31b
commit aa9f1f4d57
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -3273,6 +3273,10 @@ def append_client(*client_names):
# web_creator may work around age-verification for all videos but requires PO token
append_client('tv_embedded', 'web_creator')
status = traverse_obj(pr, ('playabilityStatus', 'status', {str}))
if status not in ('OK', 'LIVE_STREAM_OFFLINE', 'AGE_CHECK_REQUIRED', 'AGE_VERIFICATION_REQUIRED'):
self.write_debug(f'{video_id}: {client} player response playability status: {status}')
prs.extend(deprioritized_prs)
if skipped_clients: