youtube-dl

Another place where youtube-dl lives on
git clone git://git.oshgnacknak.de/youtube-dl.git
Log | Files | Refs | README | LICENSE

commit 163965d86188e5545caae4b5e33ff25278fee5e7
parent 6e218b3f9a57f42756aa3016fa9dd530fb58c452
Author: Sergey M․ <dstftw@gmail.com>
Date:   Sun, 19 Apr 2015 04:14:58 +0600

[megavideoz] Improve non-existing videos check

Diffstat:
Myoutube_dl/extractor/megavideoz.py | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 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(