projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
73095e0
)
[niconico] improve error reporting (#13696)
author
Yen Chi Hsuan
<yan12125@gmail.com>
Sun, 23 Jul 2017 08:25:17 +0000
(16:25 +0800)
committer
Yen Chi Hsuan
<yan12125@gmail.com>
Sun, 23 Jul 2017 08:25:30 +0000
(16:25 +0800)
youtube_dl/extractor/niconico.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/niconico.py
b/youtube_dl/extractor/niconico.py
index 695e32e59b84318f82eb90dcaf967315c4790aa1..79b9952c36c212b4321b01408672675e191d99a2 100644
(file)
--- a/
youtube_dl/extractor/niconico.py
+++ b/
youtube_dl/extractor/niconico.py
@@
-147,6
+147,9
@@
class NiconicoIE(InfoExtractor):
elif 'closed' in flv_info:
raise ExtractorError('Niconico videos now require logging in',
expected=True)
+ elif 'error' in flv_info:
+ raise ExtractorError('%s reports error: %s' % (
+ self.IE_NAME, flv_info['error'][0]), expected=True)
else:
raise ExtractorError('Unable to find video URL')