mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2026-04-29 20:15:53 +00:00
revert 065340088c028a935125f9a12699fcdc3de93b3b (wrong raise)
Authored by: bashonly
This commit is contained in:
parent
a02f6ae586
commit
a201e444b6
@ -862,11 +862,7 @@ class YoutubeBaseInfoExtractor(InfoExtractor):
|
|||||||
for alert_type, alert_message in (warnings + errors[:-1]):
|
for alert_type, alert_message in (warnings + errors[:-1]):
|
||||||
self.report_warning(f'YouTube said: {alert_type} - {alert_message}', only_once=only_once)
|
self.report_warning(f'YouTube said: {alert_type} - {alert_message}', only_once=only_once)
|
||||||
if errors:
|
if errors:
|
||||||
msg = errors[-1][1]
|
raise ExtractorError(f'YouTube said: {errors[-1][1]}', expected=expected)
|
||||||
if msg and 'sign in' in msg.lower():
|
|
||||||
expected = True
|
|
||||||
msg += '\n' + self._youtube_login_hint
|
|
||||||
raise ExtractorError(f'YouTube said: {msg}', expected=expected)
|
|
||||||
|
|
||||||
def _extract_and_report_alerts(self, data, *args, **kwargs):
|
def _extract_and_report_alerts(self, data, *args, **kwargs):
|
||||||
return self._report_alerts(self._extract_alerts(data), *args, **kwargs)
|
return self._report_alerts(self._extract_alerts(data), *args, **kwargs)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user