[youtube] Non-fatal alert reporting for unavailable videos page (#401)

Co-Authored by: colethedj, pukkandan
pull/343/head
coletdjnz 4 years ago committed by GitHub
parent 1974e99f4b
commit 4ba001080f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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))
return
if not check_get_keys or dict_get(response, check_get_keys):
break
# Youtube sometimes sends incomplete data

Loading…
Cancel
Save