diff options
author | Sergey M․ <dstftw@gmail.com> | 2015-04-27 23:46:16 +0600 |
---|---|---|
committer | Sergey M․ <dstftw@gmail.com> | 2015-04-27 23:46:16 +0600 |
commit | 2419a376b911df61bec6dae7178fc342a4e218f5 (patch) | |
tree | 58351408fc65a1b4a3d3e73ca03202de03a99da2 /youtube_dl | |
parent | e206740fd7454bb03e2819365a257bce59f76162 (diff) |
[moniker] Check not found error (#5541)
Diffstat (limited to 'youtube_dl')
-rw-r--r-- | youtube_dl/extractor/moniker.py | 3 |
1 files changed, 3 insertions, 0 deletions
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: |