Skip to content

A feature-rich command-line audio/video downloader

[megavideoz] Improve non-existing videos check

Sergey M․163965d86188
diff --git a/youtube_dl/extractor/megavideoz.py b/youtube_dl/extractor/megavideoz.py
index a15b6a32ac..af7ff07ea1 100644
--- a/youtube_dl/extractor/megavideoz.py
+++ b/youtube_dl/extractor/megavideoz.py
@@ -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(