A feature-rich command-line audio/video downloader
[youtube] Non-fatal alert reporting for unavailable videos page (#401)
coletdjnz4ba001080fc3
diff --git a/yt_dlp/extractor/youtube.py b/yt_dlp/extractor/youtube.pyindex f88c2f727d..9161ea3d1a 100644--- a/yt_dlp/extractor/youtube.py+++ b/yt_dlp/extractor/youtube.py@@ -3602,7 +3602,13 @@ class YoutubeTabIE(YoutubeBaseInfoExtractor):else:# Youtube may send alerts if there was an issue with the continuation page- self._extract_and_report_alerts(response, expected=False)+ try:+ self._extract_and_report_alerts(response, expected=False)+ except ExtractorError as e:+ if fatal:+ raise+ self.report_warning(error_to_compat_str(e))+ returnif not check_get_keys or dict_get(response, check_get_keys):break# Youtube sometimes sends incomplete data