mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2026-04-30 20:46:06 +00:00
changes from review
This commit is contained in:
parent
18851f70e0
commit
128a44af9e
@ -3650,9 +3650,10 @@ class YoutubeIE(YoutubeBaseInfoExtractor):
|
|||||||
reason += '. YouTube is requiring a captcha challenge before playback'
|
reason += '. YouTube is requiring a captcha challenge before playback'
|
||||||
elif "This content isn't available, try again later" in reason:
|
elif "This content isn't available, try again later" in reason:
|
||||||
reason = (
|
reason = (
|
||||||
f'{remove_end(reason.strip(), ".")}. {"Your account" if self.is_authenticated else "The current session"} has been rate-limited by YouTube for up to an hour. '
|
f'{remove_end(reason.strip(), ".")}. {"Your account" if self.is_authenticated else "The current session"} '
|
||||||
'It is recommended to use `-t sleep` to add a delay between video requests to avoid hitting the rate limit. '
|
f'has been rate-limited by YouTube for up to an hour. It is recommended to use `-t sleep` to add a delay '
|
||||||
'For more information, refer to https://github.com/yt-dlp/yt-dlp/wiki/Extractors#this-content-isnt-available-try-again-later .'
|
f'between video requests to avoid exceeding the rate limit. For more information, refer to '
|
||||||
|
f'https://github.com/yt-dlp/yt-dlp/wiki/Extractors#this-content-isnt-available-try-again-later'
|
||||||
)
|
)
|
||||||
self.raise_no_formats(reason, expected=True)
|
self.raise_no_formats(reason, expected=True)
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user