1
0
mirror of https://github.com/yt-dlp/yt-dlp.git synced 2024-09-15 23:32:25 +02:00

[megavideoz] Improve non-existing videos check

This commit is contained in:
Sergey M․ 2015-04-19 04:14:58 +06:00
parent 6e218b3f9a
commit 163965d861

View File

@ -32,7 +32,7 @@ def _real_extract(self, url):
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(