Open phihag opened 10 years ago
Getting same error on some FC2 videos, on Windows with youtube-dl version 2014.06.09.
youtube-dl -u EMAIL -p PASSWORD http://video.fc2.com/a/content/20140519VeQg1FwP -v
[debug] System config: []
[debug] User config: []
[debug] Command-line args: ['-u', '', '-p', '', 'http://video.fc2.com/a/content/20140519VeQg1FwP', '-v']
[debug] Encodings: locale cp1251, fs mbcs, out cp866, pref cp1251
[debug] youtube-dl version 2014.06.09
[debug] Python version 2.7.5 - Windows-8-6.2.9200
[debug] Proxy map: {}
[fc2] 20140519VeQg1FwP: Downloading webpage
[fc2] 20140519VeQg1FwP: Downloading info page
ERROR: Error code: 403; 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.
Traceback (most recent call last):
File "youtube_dl\YoutubeDL.pyo", line 516, in extract_info
File "youtube_dl\extractor\common.pyo", line 167, in extract
File "youtube_dl\extractor\fc2.pyo", line 50, in _real_extract
ExtractorError: Error code: 403; 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.
youtube-dl.exe -v http://video.fc2.com/a/content/20141223NmAqKStH [debug] System config: [] [debug] User config: [] [debug] Command-line args: ['-v', 'http://video.fc2.com/a/content/20141223NmAqKStH'] [debug] Encodings: locale cp932, fs mbcs, out cp932, pref cp932 [debug] youtube-dl version 2014.12.17.2 [debug] Python version 2.7.8 - Windows-7-6.1.7601-SP1 [debug] exe versions: none [debug] Proxy map: {} [fc2] 20141223NmAqKStH: Downloading webpage [fc2] 20141223NmAqKStH: Downloading info page ERROR: Error code: 403; please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; type youtube-dl -U to update. Be sure to call youtube-dl with the --verbose flag and include its complete output. Traceback (most recent call last): File "youtube_dl\YoutubeDL.pyo", line 592, in extract_info File "youtube_dl\extractor\common.pyo", line 243, in extract File "youtube_dl\extractor\fc2.pyo", line 49, in _real_extract ExtractorError: Error code: 403; please report this issue on https://yt-dl.org/b ug . Make sure you are using the latest version; type youtube-dl -U to update. Be sure to call youtube-dl with the --verbose flag and include its complete out put.
I failed to download videos of this URL. I ask you to fix this issue.
Not working for the first video (http://video.fc2.com/en/content/20130113eqtNRAv) as of 2016.07.07, though a different error is raised. The two other videos are unavailable (they require login or are removed).
$ youtube-dl -v http://video.fc2.com/en/content/20130113eqtNRAv | pbcopy
[debug] System config: []
[debug] User config: []
[debug] Command-line args: [u'-v', u'http://video.fc2.com/en/content/20130113eqtNRAv']
[debug] Encodings: locale UTF-8, fs utf-8, out None, pref UTF-8
[debug] youtube-dl version 2016.07.07
[debug] Python version 2.7.11 - Darwin-15.3.0-x86_64-i386-64bit
[debug] exe versions: avconv 11.4, avprobe 11.4, ffmpeg 3.0.2, ffprobe 3.0.2, rtmpdump 2.4
[debug] Proxy map: {}
ERROR: Unable to extract OpenGraph title; please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; type youtube-dl -U to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.
Traceback (most recent call last):
File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 681, in extract_info
ie_result = ie.extract(url)
File "/usr/local/bin/youtube-dl/youtube_dl/extractor/common.py", line 343, in extract
return self._real_extract(url)
File "/usr/local/bin/youtube-dl/youtube_dl/extractor/fc2.py", line 82, in _real_extract
title = self._og_search_title(webpage)
File "/usr/local/bin/youtube-dl/youtube_dl/extractor/common.py", line 740, in _og_search_title
return self._og_search_property('title', html, **kargs)
File "/usr/local/bin/youtube-dl/youtube_dl/extractor/common.py", line 728, in _og_search_property
escaped = self._search_regex(self._og_regexes(prop), html, name, flags=re.DOTALL, **kargs)
File "/usr/local/bin/youtube-dl/youtube_dl/extractor/common.py", line 646, in _search_regex
raise RegexNotFoundError('Unable to extract %s' % _name)
RegexNotFoundError: Unable to extract OpenGraph title; please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; type youtube-dl -U to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.
youtube-dl.exe -v http://video.fc2.com/en/a/content/20160712vBJB4txY/ [debug] System config: [] [debug] User config: [] [debug] Command-line args: ['-v', 'http://video.fc2.com/en/a/content/20160712vBJB4txY/'] [debug] Encodings: locale cp932, fs mbcs, out cp932, pref cp932 [debug] youtube-dl version 2016.07.13 [debug] Python version 3.4.4 - Windows-7-6.1.7601-SP1 [debug] exe versions: none [debug] Proxy map: {} [fc2] 20160712vBJB4txY: Downloading webpage [fc2] 20160712vBJB4txY: Downloading info page [debug] Invoking downloader on 'http://vip.video19000-cdn2.fc2.com/up/flv/201607/12/v/20160712vBJB4txY.cdn.flv?mid=3076ce205279ce2d044db9b96aa7809a' ERROR: unable to download video data: HTTP Error 403: Forbidden Traceback (most recent call last): File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\rg3\tmpc5h2pb0m\build\youtube_dl\YoutubeDL.py", line 1653, in process_info File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\rg3\tmpc5h2pb0m\build\youtube_dl\YoutubeDL.py", line 1595, in dl File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\rg3\tmpc5h2pb0m\build\youtube_dl\downloader\common.py", line 350, in download File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\rg3\tmpc5h2pb0m\build\youtube_dl\downloader\http.py", line 58, in real_download File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\rg3\tmpc5h2pb0m\build\youtube_dl\YoutubeDL.py", line 1955, in urlopen File "C:\Python\Python34\lib\urllib\request.py", line 470, in open File "C:\Python\Python34\lib\urllib\request.py", line 580, in http_response File "C:\Python\Python34\lib\urllib\request.py", line 508, in error File "C:\Python\Python34\lib\urllib\request.py", line 442, in _call_chain File "C:\Python\Python34\lib\urllib\request.py", line 588, in http_error_default urllib.error.HTTPError: HTTP Error 403: Forbidden
I couldn't download this video.
It looks like the problem is the missing PHPSESSID cookie. We should fix cookie handling in fc2.