mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2025-05-17 11:18:55 +00:00
[ie/youtube] Add warning on video captcha challenge (#12939)
Authored by: coletdjnz
This commit is contained in:
parent
72ba487930
commit
f484c51599
@ -3646,6 +3646,8 @@ class YoutubeIE(YoutubeBaseInfoExtractor):
|
|||||||
if 'sign in' in reason.lower():
|
if 'sign in' in reason.lower():
|
||||||
reason = remove_end(reason, 'This helps protect our community. Learn more')
|
reason = remove_end(reason, 'This helps protect our community. Learn more')
|
||||||
reason = f'{remove_end(reason.strip(), ".")}. {self._youtube_login_hint}'
|
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)
|
self.raise_no_formats(reason, expected=True)
|
||||||
|
|
||||||
keywords = get_first(video_details, 'keywords', expected_type=list) or []
|
keywords = get_first(video_details, 'keywords', expected_type=list) or []
|
||||||
|
Loading…
x
Reference in New Issue
Block a user