From 2419a376b911df61bec6dae7178fc342a4e218f5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sergey=20M=E2=80=A4?= Date: Mon, 27 Apr 2015 23:46:16 +0600 Subject: [PATCH] [moniker] Check not found error (#5541) --- youtube_dl/extractor/moniker.py | 3 +++ 1 file changed, 3 insertions(+) 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 @@ def _real_extract(self, url): 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: