projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e206740
)
[moniker] Check not found error (#5541)
author
Sergey M․
<dstftw@gmail.com>
Mon, 27 Apr 2015 17:46:16 +0000
(23:46 +0600)
committer
Sergey M․
<dstftw@gmail.com>
Mon, 27 Apr 2015 17:46:16 +0000
(23:46 +0600)
youtube_dl/extractor/moniker.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/moniker.py
b/youtube_dl/extractor/moniker.py
index 801abe0e187631d2dd8eabbdd7dc218f6f673f5f..88dcd4f737544356091220d53078bc1c2e222d76 100644
(file)
--- 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: