diff options
author | Yen Chi Hsuan <yan12125@gmail.com> | 2017-07-23 16:25:17 +0800 |
---|---|---|
committer | Yen Chi Hsuan <yan12125@gmail.com> | 2017-07-23 16:25:30 +0800 |
commit | e3ce912c3d767fcb1a1225d05ac64da1acab94aa (patch) | |
tree | 6d44598cf65b656cd2b2269cd3033fa2b707cbb4 | |
parent | 73095e013fb1bc4a1e676d7be77a103f0013a227 (diff) |
[niconico] improve error reporting (#13696)
-rw-r--r-- | youtube_dl/extractor/niconico.py | 3 |
1 files changed, 3 insertions, 0 deletions
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') |