浏览代码

[megavideoz] Improve non-existing videos check

Sergey M․ 10 年之前
父节点
当前提交
163965d861
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      youtube_dl/extractor/megavideoz.py

+ 1 - 1
youtube_dl/extractor/megavideoz.py

@@ -32,7 +32,7 @@ class MegaVideozIE(InfoExtractor):
 
 
         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(