From: Yen Chi Hsuan Date: Sun, 23 Jul 2017 08:25:17 +0000 (+0800) Subject: [niconico] improve error reporting (#13696) X-Git-Url: http://git.oshgnacknak.de/?a=commitdiff_plain;h=e3ce912c3d767fcb1a1225d05ac64da1acab94aa;p=youtube-dl [niconico] improve error reporting (#13696) --- diff --git a/youtube_dl/extractor/niconico.py b/youtube_dl/extractor/niconico.py index 695e32e59..79b9952c3 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')