From: Sergey M․ Date: Mon, 27 Apr 2015 17:46:16 +0000 (+0600) Subject: [moniker] Check not found error (#5541) X-Git-Url: http://git.oshgnacknak.de/?a=commitdiff_plain;h=2419a376b911df61bec6dae7178fc342a4e218f5;p=youtube-dl [moniker] Check not found error (#5541) --- diff --git a/youtube_dl/extractor/moniker.py b/youtube_dl/extractor/moniker.py index 801abe0e1..88dcd4f73 100644 --- a/youtube_dl/extractor/moniker.py +++ b/youtube_dl/extractor/moniker.py @@ -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: