A feature-rich command-line audio/video downloader
[niconico] improve error reporting (#13696)
Yen Chi Hsuane3ce912c3d76
diff --git a/youtube_dl/extractor/niconico.py b/youtube_dl/extractor/niconico.pyindex 695e32e59b..79b9952c36 100644--- 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')