mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-09-05 18:39:37 +02:00
[youtube] Non-fatal alert reporting for unavailable videos page (#401)
Co-Authored by: colethedj, pukkandan
This commit is contained in:
parent
1974e99f4b
commit
4ba001080f
@ -3602,7 +3602,13 @@ def _extract_response(self, item_id, query, note='Downloading API JSON', headers
|
|||||||
|
|
||||||
else:
|
else:
|
||||||
# Youtube may send alerts if there was an issue with the continuation page
|
# 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))
|
||||||
|
return
|
||||||
if not check_get_keys or dict_get(response, check_get_keys):
|
if not check_get_keys or dict_get(response, check_get_keys):
|
||||||
break
|
break
|
||||||
# Youtube sometimes sends incomplete data
|
# Youtube sometimes sends incomplete data
|
||||||
|
Loading…
Reference in New Issue
Block a user