mirror of
https://github.com/ytdl-org/youtube-dl.git
synced 2024-12-15 21:57:53 +01:00
[megavideoz] Improve non-existing videos check
This commit is contained in:
parent
6e218b3f9a
commit
163965d861
@ -32,7 +32,7 @@ class MegaVideozIE(InfoExtractor):
|
||||
|
||||
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)
|
||||
|
||||
config = self._download_xml(
|
||||
|
Loading…
Reference in New Issue
Block a user