youtube-dl

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

commit 2419a376b911df61bec6dae7178fc342a4e218f5
parent e206740fd7454bb03e2819365a257bce59f76162
Author: Sergey M․ <dstftw@gmail.com>
Date:   Mon, 27 Apr 2015 23:46:16 +0600

[moniker] Check not found error (#5541)

Diffstat:
Myoutube_dl/extractor/moniker.py | 3+++
1 file changed, 3 insertions(+), 0 deletions(-)

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