mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-21 20:46:36 -05:00
[niconico] improve error reporting (#13696)
This commit is contained in:
parent
73095e013f
commit
e3ce912c3d
1 changed files with 3 additions and 0 deletions
|
@ -147,6 +147,9 @@ def _real_extract(self, url):
|
|||
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')
|
||||
|
||||
|
|
Loading…
Reference in a new issue