]> git.bitcoin.ninja Git - youtube-dl/commitdiff
[moniker] Check not found error (#5541)
authorSergey M․ <dstftw@gmail.com>
Mon, 27 Apr 2015 17:46:16 +0000 (23:46 +0600)
committerSergey M․ <dstftw@gmail.com>
Mon, 27 Apr 2015 17:46:16 +0000 (23:46 +0600)
youtube_dl/extractor/moniker.py

index 801abe0e187631d2dd8eabbdd7dc218f6f673f5f..88dcd4f737544356091220d53078bc1c2e222d76 100644 (file)
@@ -41,6 +41,9 @@ class MonikerIE(InfoExtractor):
         video_id = self._match_id(url)
         orig_webpage = self._download_webpage(url, video_id)
 
+        if '>File Not Found<' in orig_webpage:
+            raise ExtractorError('Video %s does not exist' % video_id, expected=True)
+
         error = self._search_regex(
             r'class="err">([^<]+)<', orig_webpage, 'error', default=None)
         if error: