From: Sergey M․ Date: Sat, 18 Apr 2015 22:14:58 +0000 (+0600) Subject: [megavideoz] Improve non-existing videos check X-Git-Url: http://git.oshgnacknak.de/?a=commitdiff_plain;h=163965d86188e5545caae4b5e33ff25278fee5e7;p=youtube-dl [megavideoz] Improve non-existing videos check --- diff --git a/youtube_dl/extractor/megavideoz.py b/youtube_dl/extractor/megavideoz.py index a15b6a32a..af7ff07ea 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(