Closed tewe closed 7 years ago
It works fine for me. Can you post the output of youtube-dl -v ...
you get?
[debug] System config: []
[debug] User config: ['--no-overwrites', '--output', '%(title)s-%(extractor)s-%(id)s.%(ext)s', '--ignore-errors']
[debug] Command-line args: ['--verbose', '-u', '<PRIVATE>', '-p', '<PRIVATE>', 'http://www.nicovideo.jp/watch/sm11588976']
[debug] youtube-dl version 2013.12.11.2
[debug] Python version 2.7.6 - Darwin-12.5.0-x86_64-i386-64bit
[debug] Proxy map: {}
[niconico] : Logging in
[niconico] sm11588976: Downloading webpage
[niconico] sm11588976: Downloading video info page
[niconico] sm11588976: Downloading flv info
[niconico] sm11588976: Downloading user information
ERROR: Unable to download XML: HTTP Error 404: Not Found; please report this issue on https://yt-dl.org/bug . Be sure to call youtube-dl with the --verbose flag and include its complete output. Make sure you are using the latest version; type youtube-dl -U to update.
File "/usr/local/bin/youtube-dl/youtube_dl/extractor/common.py", line 167, in _request_webpage
return self._downloader.urlopen(url_or_request)
File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 1029, in urlopen
return self._opener.open(req)
File "/usr/local/Cellar/python/2.7.6/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 410, in open
response = meth(req, response)
File "/usr/local/Cellar/python/2.7.6/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 523, in http_response
'http', request, response, code, msg, hdrs)
File "/usr/local/Cellar/python/2.7.6/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 448, in error
return self._call_chain(*args)
File "/usr/local/Cellar/python/2.7.6/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 382, in _call_chain
result = func(*args)
File "/usr/local/Cellar/python/2.7.6/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 531, in http_error_default
raise HTTPError(req.get_full_url(), code, msg, hdrs, fp)
Looks like the niconico extractor still works with sm URLS but not with the new so ones.
Example:
$ youtube-dl http://www.nicovideo.jp/watch/sm25738069
WORKS!
$ youtube-dl http://www.nicovideo.jp/watch/so25716969
DOESN'T WORK.
@pascalbrax it's unrelated, please open a new issue. Note that in a browser you get redirected to http://www.nicovideo.jp/watch/1425530678, which does work.
@jaimeMF My bad. Yes it works... And I'm kind of confused because I've tested it several times and it didn't work. Oh well, nevermind then. :+1:
@pascalbrax Note that the original url http://www.nicovideo.jp/watch/so25716969 doesn't work.
All videos mentioned above works with the latest version. Closing.
Downloading user info fails, probably because the API changed. Can't debug that as I don't have Flash.
You can still get videos if you fix the error handling: line 111 in niconico.py has to catch ExtractorError instead of the various low-level exceptions, as those were already converted in _request_webpage.