Closed briefbanane closed 10 years ago
Thank you for the report. Support for fc2 has been added in youtube-dl 2014.05.13. Use your package manager to update.
I only ever get (random video):
[fc2] 20130113eqtNRAv5: Downloading info page
Traceback (most recent call last):
File "youtube-dl/youtube_dl/YoutubeDL.py", line 516, in extract_info
ie_result = ie.extract(url)
File "youtube-dl/youtube_dl/extractor/common.py", line 161, in extract
return self._real_extract(url)
File "youtube-dl/youtube_dl/extractor/fc2.py", line 50, in _real_extract
raise ExtractorError('Error code: %s' % info['err_code'][0])
Nobody mentioned that video, so we did just test with the one that was mentioned, i.e. http://video.fc2.com/en/content/20121103kUan1KHs . I've created #2912 to deal with the issue you are describing.
I get this:
youtube-dl --verbose http://video.fc2.com/content/20140505q9quYPfN
[debug] System config: []
[debug] User config: []
[debug] Command-line args: ['--verbose', 'http://video.fc2.com/content/20140505q9quYPfN']
[debug] Encodings: locale UTF-8, fs UTF-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2014.05.19
[debug] Python version 2.7.5+ - Linux-3.11.0-22-generic-x86_64-with-Ubuntu-13.10-saucy
[debug] Proxy map: {}
[generic] 20140505q9quYPfN: Requesting header
WARNING: Falling back on generic information extractor.
[generic] 20140505q9quYPfN: Downloading webpage
[generic] 20140505q9quYPfN: Extracting information
ERROR: unable to download video data: HTTP Error 400: BAD_REQUEST
Traceback (most recent call last):
File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 1009, in process_info
success = dl(filename, info_dict)
File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 985, in dl
return fd.download(name, info)
File "/usr/local/bin/youtube-dl/youtube_dl/downloader/common.py", line 291, in download
return self.real_download(filename, info_dict)
File "/usr/local/bin/youtube-dl/youtube_dl/downloader/http.py", line 58, in real_download
data = self.ydl.urlopen(request)
File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 1214, in urlopen
return self._opener.open(req, timeout=self._socket_timeout)
File "/usr/lib/python2.7/urllib2.py", line 410, in open
response = meth(req, response)
File "/usr/lib/python2.7/urllib2.py", line 523, in http_response
'http', request, response, code, msg, hdrs)
File "/usr/lib/python2.7/urllib2.py", line 448, in error
return self._call_chain(*args)
File "/usr/lib/python2.7/urllib2.py", line 382, in _call_chain
result = func(*args)
File "/usr/lib/python2.7/urllib2.py", line 531, in http_error_default
raise HTTPError(req.get_full_url(), code, msg, hdrs, fp)
HTTPError: HTTP Error 400: BAD_REQUEST
Is that a different error?
@felagund Thanks for the report, it didn't recognize it because the urls doesn't have the language part, it will work in the next version. For the next issue, there's nothing wrong in opening a new issue, it usually makes tracking them easier.
It doesn't work anymore again.
[fc2] Logging in ERROR: Unable to log in: <urlopen error [Errno 8] _ssl.c:507: EOF occurred in violation of protocol> File "youtube_dl\extractor\common.pyo", line 200, in _request_webpage File "youtube_dl\YoutubeDL.pyo", line 1225, in urlopen File "urllib2.pyo", line 404, in open File "urllib2.pyo", line 422, in _open File "urllib2.pyo", line 382, in _call_chain File "youtube_dl\utils.pyo", line 591, in https_open File "urllib2.pyo", line 1184, in do_open
Also, https://github.com/rg3/youtube-dl/issues/2912 / https://github.com/rg3/youtube-dl/issues/3171 is still not fixed.
Shame I don't have time to figure how to make it work for unauthenticated user (limits), sigh..
I bumped my fork some time ago, to latest upstream master (someone mailed me that it doesn't work anymore) and it fixed problem described by @reyaz006 (for me at least). I believe it was the same issue as #3727 .
Btw. Sorry for spamming issue tracker with commits ,I didn't think it would stay on fork's master for so long and that I will need to update it (referencing issues in commit message was a bad idea).
$ youtube-dl "http://video.fc2.com/content/20130605NLRxsKaw" --verbose [debug] System config: [] [debug] User config: [] [debug] Command-line args: ['http://video.fc2.com/content/20130605NLRxsKaw', '--verbose'] [debug] youtube-dl version 2013.07.19 [debug] Python version 3.3.2 - Linux-3.10.3-1-ARCH-x86_64-with-arch [debug] Proxy map: {} WARNING: Falling back on generic information extractor. [generic] 20130605NLRxsKaw: Downloading webpage [generic] 20130605NLRxsKaw: Extracting information ERROR: Invalid URL: http://video.fc2.com/content/20130605NLRxsKaw; 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. Traceback (most recent call last): File "/usr/lib/python3.3/site-packages/youtube_dl/YoutubeDL.py", line 312, in extract_info ie_result = ie.extract(url) File "/usr/lib/python3.3/site-packages/youtube_dl/extractor/common.py", line 96, in extract return self._real_extract(url) File "/usr/lib/python3.3/site-packages/youtube_dl/extractor/generic.py", line 148, in _real_extract raise ExtractorError(u'Invalid URL: %s' % url) youtube_dl.utils.ExtractorError: Invalid URL: http://video.fc2.com/content/20130605NLRxsKaw; 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.
It would be great if you could support this site (at least for Japanese speakers and learners :)