From a201e444b67a16c817ac37e1f1b5fa4e5c41a0f4 Mon Sep 17 00:00:00 2001 From: bashonly Date: Fri, 15 Nov 2024 14:06:50 -0600 Subject: [PATCH] revert 065340088c028a935125f9a12699fcdc3de93b3b (wrong raise) Authored by: bashonly --- yt_dlp/extractor/youtube.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/yt_dlp/extractor/youtube.py b/yt_dlp/extractor/youtube.py index cdb8c36b5f..526302920c 100644 --- a/yt_dlp/extractor/youtube.py +++ b/yt_dlp/extractor/youtube.py @@ -862,11 +862,7 @@ class YoutubeBaseInfoExtractor(InfoExtractor): for alert_type, alert_message in (warnings + errors[:-1]): self.report_warning(f'YouTube said: {alert_type} - {alert_message}', only_once=only_once) if errors: - msg = errors[-1][1] - if msg and 'sign in' in msg.lower(): - expected = True - msg += '\n' + self._youtube_login_hint - raise ExtractorError(f'YouTube said: {msg}', expected=expected) + raise ExtractorError(f'YouTube said: {errors[-1][1]}', expected=expected) def _extract_and_report_alerts(self, data, *args, **kwargs): return self._report_alerts(self._extract_alerts(data), *args, **kwargs)