Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

niconico is broken #2087

Closed
tewe opened this issue Jan 4, 2014 · 7 comments
Closed

niconico is broken #2087

tewe opened this issue Jan 4, 2014 · 7 comments

Comments

@tewe
Copy link

@tewe tewe commented Jan 4, 2014

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.

@phihag
Copy link
Contributor

@phihag phihag commented Jan 4, 2014

It works fine for me. Can you post the output of youtube-dl -v ... you get?

@tewe
Copy link
Author

@tewe tewe commented Jan 4, 2014

[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)
@pascalbrax
Copy link
Contributor

@pascalbrax pascalbrax commented Mar 9, 2015

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.

@jaimeMF
Copy link
Collaborator

@jaimeMF jaimeMF commented Mar 9, 2015

@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.

@pascalbrax
Copy link
Contributor

@pascalbrax pascalbrax commented Mar 9, 2015

@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. 👍

@jaimeMF
Copy link
Collaborator

@jaimeMF jaimeMF commented Mar 9, 2015

@pascalbrax Note that the original url http://www.nicovideo.jp/watch/so25716969 doesn't work.

yan12125 added a commit that referenced this issue Apr 30, 2015
@yan12125
Copy link
Collaborator

@yan12125 yan12125 commented Jan 15, 2017

All videos mentioned above works with the latest version. Closing.

@yan12125 yan12125 closed this Jan 15, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
5 participants
You can’t perform that action at this time.