From aa9f1f4d577e99897ac16cd19d4e217d688ea75d Mon Sep 17 00:00:00 2001 From: coletdjnz Date: Wed, 9 Jul 2025 18:29:54 +1200 Subject: [PATCH] [ie/youtube] Log bad playability statuses of player responses (#13647) Authored by: coletdjnz --- yt_dlp/extractor/youtube/_video.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/yt_dlp/extractor/youtube/_video.py b/yt_dlp/extractor/youtube/_video.py index 8fa3b0a347..208abee937 100644 --- a/yt_dlp/extractor/youtube/_video.py +++ b/yt_dlp/extractor/youtube/_video.py @@ -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: