ytdl-org / youtube-dl

Command-line program to download videos from YouTube.com and other video sites
http://ytdl-org.github.io/youtube-dl/
The Unlicense
131.83k stars 10k forks source link

91porn bugs #7578

Closed buptlishantao closed 8 years ago

buptlishantao commented 8 years ago

youtube-dl http://91porn.com/view_video.php?viewkey=1d2740a84a620fcfef0f

[91porn] 1d2740a84a620fcfef0f: get HTML content ERROR: Unable to download webpage: '' (caused by BadStatusLine("''",)); 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.

dstftw commented 8 years ago

Post the full output of youtube-dl when run with --verbose option.

buptlishantao commented 8 years ago

localhost:~ lishantao$ youtube-dl --verbose http://91porn.com/view_video.php?viewkey=1d2740a84a620fcfef0f [debug] System config: [] [debug] User config: [] [debug] Command-line args: [u'--verbose', u'http://91porn.com/view_video.php?viewkey=1d2740a84a620fcfef0f'] [debug] Encodings: locale UTF-8, fs utf-8, out UTF-8, pref UTF-8 [debug] youtube-dl version 2015.11.19 [debug] Python version 2.7.10 - Darwin-15.0.0-x86_64-i386-64bit [debug] exe versions: none [debug] Proxy map: {} [91porn] 1d2740a84a620fcfef0f: get HTML content ERROR: Unable to download webpage: '' (caused by BadStatusLine("''",)); 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. File "/usr/local/bin/youtube-dl/youtube_dl/extractor/common.py", line 329, in _request_webpage return self._downloader.urlopen(url_or_request) File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 1873, in urlopen return self._opener.open(req, timeout=self._socket_timeout) File "/Users/lishantao/anaconda/lib/python2.7/urllib2.py", line 431, in open response = self._open(req, data) File "/Users/lishantao/anaconda/lib/python2.7/urllib2.py", line 449, in _open '_open', req) File "/Users/lishantao/anaconda/lib/python2.7/urllib2.py", line 409, in _call_chain result = func(*args) File "/usr/local/bin/youtube-dl/youtube_dl/utils.py", line 684, in http_open req) File "/Users/lishantao/anaconda/lib/python2.7/urllib2.py", line 1200, in do_open r = h.getresponse(buffering=True) File "/Users/lishantao/anaconda/lib/python2.7/httplib.py", line 1132, in getresponse response.begin() File "/Users/lishantao/anaconda/lib/python2.7/httplib.py", line 453, in begin version, status, reason = self._read_status() File "/Users/lishantao/anaconda/lib/python2.7/httplib.py", line 417, in _read_status raise BadStatusLine(line)

dstftw commented 8 years ago

Can you watch it in browser?

buptlishantao commented 8 years ago

I am in china,if I turn shadowsocks on, I can watch it in browser.

dstftw commented 8 years ago

So you have to provide http proxy to youtube-dl with --proxy.

yan12125 commented 8 years ago

Looks like shadowsocks uses socks5 protocol. It's not directly supported via --proxy. See #402 for workarounds.

buptlishantao commented 8 years ago

thanks