mirror of
https://github.com/yt-dlp/yt-dlp
synced 2025-12-17 22:55:42 +07:00
[megavideoz] Improve non-existing videos check
This commit is contained in:
@@ -32,7 +32,7 @@ def _real_extract(self, url):
|
|||||||
|
|
||||||
webpage = self._download_webpage(url, display_id)
|
webpage = self._download_webpage(url, display_id)
|
||||||
|
|
||||||
if '>Video Not Found<' in webpage:
|
if any(p in webpage for p in ('>Video Not Found<', '>404 Error<')):
|
||||||
raise ExtractorError('Video %s does not exist' % video_id, expected=True)
|
raise ExtractorError('Video %s does not exist' % video_id, expected=True)
|
||||||
|
|
||||||
config = self._download_xml(
|
config = self._download_xml(
|
||||||
|
|||||||
Reference in New Issue
Block a user