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

Support http://video.fc2.com/ #1154

Closed
briefbanane opened this issue Jul 30, 2013 · 7 comments
Closed

Support http://video.fc2.com/ #1154

briefbanane opened this issue Jul 30, 2013 · 7 comments

Comments

@briefbanane
Copy link

@briefbanane briefbanane commented Jul 30, 2013

$ 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 :)

@phihag
Copy link
Contributor

@phihag phihag commented May 13, 2014

Thank you for the report. Support for fc2 has been added in youtube-dl 2014.05.13. Use your package manager to update.

@phihag phihag closed this May 13, 2014
@tewe
Copy link

@tewe tewe commented May 13, 2014

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])
@phihag
Copy link
Contributor

@phihag phihag commented May 13, 2014

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.

@felagund
Copy link

@felagund felagund commented May 31, 2014

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?

jaimeMF added a commit that referenced this issue May 31, 2014
@jaimeMF
Copy link
Collaborator

@jaimeMF jaimeMF commented May 31, 2014

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

@reyaz006
Copy link

@reyaz006 reyaz006 commented Oct 22, 2014

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, #2912 / #3171 is still not fixed.

@h-collector
Copy link
Contributor

@h-collector h-collector commented Nov 4, 2014

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

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
7 participants
You can’t perform that action at this time.