mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-05 12:00:21 +00:00
[moniker] Check not found error (#5541)
This commit is contained in:
parent
e206740fd7
commit
2419a376b9
@ -41,6 +41,9 @@ def _real_extract(self, url):
|
|||||||
video_id = self._match_id(url)
|
video_id = self._match_id(url)
|
||||||
orig_webpage = self._download_webpage(url, video_id)
|
orig_webpage = self._download_webpage(url, video_id)
|
||||||
|
|
||||||
|
if '>File Not Found<' in orig_webpage:
|
||||||
|
raise ExtractorError('Video %s does not exist' % video_id, expected=True)
|
||||||
|
|
||||||
error = self._search_regex(
|
error = self._search_regex(
|
||||||
r'class="err">([^<]+)<', orig_webpage, 'error', default=None)
|
r'class="err">([^<]+)<', orig_webpage, 'error', default=None)
|
||||||
if error:
|
if error:
|
||||||
|
Loading…
Reference in New Issue
Block a user