Browse Source

[megavideoz] Improve non-existing videos check

master
Sergey M․ 9 years ago
parent
commit
163965d861
1 changed files with 1 additions and 1 deletions
  1. 2
      youtube_dl/extractor/megavideoz.py

2
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(

Loading…
Cancel
Save