From 128a44af9e83fa226029d3796560d749f3e68243 Mon Sep 17 00:00:00 2001 From: coletdjnz Date: Fri, 25 Apr 2025 12:32:38 +1200 Subject: [PATCH] changes from review --- yt_dlp/extractor/youtube/_video.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/yt_dlp/extractor/youtube/_video.py b/yt_dlp/extractor/youtube/_video.py index b3889a3988..5bcc05f7ef 100644 --- a/yt_dlp/extractor/youtube/_video.py +++ b/yt_dlp/extractor/youtube/_video.py @@ -3650,9 +3650,10 @@ class YoutubeIE(YoutubeBaseInfoExtractor): reason += '. YouTube is requiring a captcha challenge before playback' elif "This content isn't available, try again later" in 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. ' - 'It is recommended to use `-t sleep` to add a delay between video requests to avoid hitting the rate limit. ' - 'For more information, refer to https://github.com/yt-dlp/yt-dlp/wiki/Extractors#this-content-isnt-available-try-again-later .' + f'{remove_end(reason.strip(), ".")}. {"Your account" if self.is_authenticated else "The current session"} ' + f'has been rate-limited by YouTube for up to an hour. It is recommended to use `-t sleep` to add a delay ' + 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)