diff options
author | coletdjnz <coletdjnz@protonmail.com> | 2025-04-18 11:40:39 +1200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-04-18 11:40:39 +1200 |
commit | f484c51599a6cd01eb078ea7dc9bbba942967774 (patch) | |
tree | 05005c2cec1445bbc8c732467298e4fd921a103a | |
parent | 72ba4879304c2082fecbb472e6cc05ee2d154a3b (diff) |
[ie/youtube] Add warning on video captcha challenge (#12939)
Authored by: coletdjnz
-rw-r--r-- | yt_dlp/extractor/youtube/_video.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/yt_dlp/extractor/youtube/_video.py b/yt_dlp/extractor/youtube/_video.py index 074a2a0d8..c6b69e440 100644 --- a/yt_dlp/extractor/youtube/_video.py +++ b/yt_dlp/extractor/youtube/_video.py @@ -3646,6 +3646,8 @@ class YoutubeIE(YoutubeBaseInfoExtractor): if 'sign in' in reason.lower(): reason = remove_end(reason, 'This helps protect our community. Learn more') reason = f'{remove_end(reason.strip(), ".")}. {self._youtube_login_hint}' + elif get_first(playability_statuses, ('errorScreen', 'playerCaptchaViewModel', {dict})): + reason += '. YouTube is requiring a captcha challenge before playback' self.raise_no_formats(reason, expected=True) keywords = get_first(video_details, 'keywords', expected_type=list) or [] |