blackjack4494 / youtube-dlc

Command-line program to download various media from YouTube.com and other sites
https://blackjack4494.github.io/youtube-dlc/
The Unlicense
1.22k stars 13 forks source link

[Broken] bilibili downloads unable to complete #182

Open bogger33 opened 4 years ago

bogger33 commented 4 years ago

Checklist

Verbose log

./youtube-dlc https://www.bilibili.com/video/av837679080 -v [debug] System config: [] [debug] User config: [] [debug] Custom config: [] [debug] Command-line args: [u'https://www.bilibili.com/video/av837679080', u'-v'] [debug] Loading archive file None [debug] Encodings: locale UTF-8, fs UTF-8, out UTF-8, pref UTF-8 [debug] youtube-dlc version 2020.10.09 [debug] Python version 2.7.16 (CPython) - Linux-4.19.0-11-amd64-x86_64-with-LinuxMint-4-debbie [debug] exe versions: ffmpeg 4.1.6-1, ffprobe 4.1.6-1 [debug] Proxy map: {} [BiliBili] 837679080: Downloading webpage [BiliBili] 837679080: Downloading video info page [debug] Default format spec: bestvideo+bestaudio/best [debug] Invoking downloader on u'http://upos-hz-mirrorakam.akamaized.net/upgcxcode/05/54/174955405/174955405-1-64.flv?e=ig8euxZM2rNcNbNV7zUVhoMghwuBhwdEto8g5X10ugNcXBlqNxHxNEVE5XREto8KqJZHUa6m5J0SqE85tZvEuENvNC8xNEVE9EKE9IMvXBvE2ENvNCImNEVEK9GVqJIwqa80WXIekXRE9IMvXBvEuENvNCImNEVEua6m2jIxux0CkF6s2JZv5x0DQJZY2F8SkXKE9IB5QK==&deadline=1602413897&gen=playurl&nbs=1&oi=521299598&os=akam&platform=pc&trid=2386017dec054e8783716e2c154b46a1&uipk=5&upsig=cc23c820370c586f2d0a31d5f84c00f3&uparams=e,deadline,gen,nbs,oi,os,platform,trid,uipk&hdnts=exp=1602413897~hmac=ba402fdd9d8a4b0c8b5b3725b78640e92a9191776822ce844197340adc3e5436&mid=0' [download] Destination: Scott Meyers – The Most Important Design Guideline-837679080.flv [download] 2.8% of 281.06MiB at 2.28MiB/s ETA 01:59[download] Got server HTTP error: Downloaded 8388608 bytes, expected 294714247 bytes. Retrying (attempt 1 of 10)... [download] Destination: Scott Meyers – The Most Important Design Guideline-837679080.flv [download] 4.3% of 281.06MiB at 924.02KiB/s ETA 04:58[download] Got server HTTP error: Downloaded 12582912 bytes, expected 294714247 bytes. Retrying (attempt 2 of 10)... ERROR: unable to download video data: No status line received - the server has closed the connection Traceback (most recent call last): File "./youtube-dlc/youtube_dlc/YoutubeDL.py", line 2003, in process_info success = dl(filename, info_dict) File "./youtube-dlc/youtube_dlc/YoutubeDL.py", line 1861, in dl return fd.download(name, info) File "./youtube-dlc/youtube_dlc/downloader/common.py", line 366, in download return self.real_download(filename, info_dict) File "./youtube-dlc/youtube_dlc/downloader/http.py", line 349, in real_download establish_connection() File "./youtube-dlc/youtube_dlc/downloader/http.py", line 110, in establish_connection ctx.data = self.ydl.urlopen(request) File "./youtube-dlc/youtube_dlc/YoutubeDL.py", line 2308, in urlopen return self._opener.open(req, timeout=self._socket_timeout) File "/usr/lib/python2.7/urllib2.py", line 429, in open response = self._open(req, data) File "/usr/lib/python2.7/urllib2.py", line 447, in _open '_open', req) File "/usr/lib/python2.7/urllib2.py", line 407, in _call_chain result = func(*args) File "./youtube-dlc/youtube_dlc/utils.py", line 2582, in http_open req) File "/usr/lib/python2.7/urllib2.py", line 1201, in do_open r = h.getresponse(buffering=True) File "/usr/lib/python2.7/httplib.py", line 1137, in getresponse response.begin() File "/usr/lib/python2.7/httplib.py", line 448, in begin version, status, reason = self._read_status() File "/usr/lib/python2.7/httplib.py", line 412, in _read_status raise BadStatusLine("No status line received - the server has closed the connection") BadStatusLine: No status line received - the server has closed the connection

trying a second time, it fails right away:

./youtube-dlc https://www.bilibili.com/video/av837679080 -v [debug] System config: [] [debug] User config: [] [debug] Custom config: [] [debug] Command-line args: [u'https://www.bilibili.com/video/av837679080', u'-v'] [debug] Loading archive file None [debug] Encodings: locale UTF-8, fs UTF-8, out UTF-8, pref UTF-8 [debug] youtube-dlc version 2020.10.09 [debug] Python version 2.7.16 (CPython) - Linux-4.19.0-11-amd64-x86_64-with-LinuxMint-4-debbie [debug] exe versions: ffmpeg 4.1.6-1, ffprobe 4.1.6-1 [debug] Proxy map: {} [BiliBili] 837679080: Downloading webpage [BiliBili] 837679080: Downloading video info page [debug] Default format spec: bestvideo+bestaudio/best [debug] Invoking downloader on u'http://upos-hz-mirrorakam.akamaized.net/upgcxcode/05/54/174955405/174955405-1-64.flv?e=ig8euxZM2rNcNbNV7zUVhoMghwuBhwdEto8g5X10ugNcXBlqNxHxNEVE5XREto8KqJZHUa6m5J0SqE85tZvEuENvNC8xNEVE9EKE9IMvXBvE2ENvNCImNEVEK9GVqJIwqa80WXIekXRE9IMvXBvEuENvNCImNEVEua6m2jIxux0CkF6s2JZv5x0DQJZY2F8SkXKE9IB5QK==&deadline=1602413915&gen=playurl&nbs=1&oi=521299598&os=akam&platform=pc&trid=81d50a44a3ca431f800d3f92f5902298&uipk=5&upsig=a58ab5754340003e09467b285317fe47&uparams=e,deadline,gen,nbs,oi,os,platform,trid,uipk&hdnts=exp=1602413915~hmac=76eee769ab85b9a19301c28d3904d26b4a9c1f1a509ccf56cfc302c6ae4e1b36&mid=0' [download] Resuming download at byte 12582912 ERROR: unable to download video data: No status line received - the server has closed the connection Traceback (most recent call last): File "./youtube-dlc/youtube_dlc/YoutubeDL.py", line 2003, in process_info success = dl(filename, info_dict) File "./youtube-dlc/youtube_dlc/YoutubeDL.py", line 1861, in dl return fd.download(name, info) File "./youtube-dlc/youtube_dlc/downloader/common.py", line 366, in download return self.real_download(filename, info_dict) File "./youtube-dlc/youtube_dlc/downloader/http.py", line 349, in real_download establish_connection() File "./youtube-dlc/youtube_dlc/downloader/http.py", line 110, in establish_connection ctx.data = self.ydl.urlopen(request) File "./youtube-dlc/youtube_dlc/YoutubeDL.py", line 2308, in urlopen return self._opener.open(req, timeout=self._socket_timeout) File "/usr/lib/python2.7/urllib2.py", line 429, in open response = self._open(req, data) File "/usr/lib/python2.7/urllib2.py", line 447, in _open '_open', req) File "/usr/lib/python2.7/urllib2.py", line 407, in _call_chain result = func(*args) File "./youtube-dlc/youtube_dlc/utils.py", line 2582, in http_open req) File "/usr/lib/python2.7/urllib2.py", line 1201, in do_open r = h.getresponse(buffering=True) File "/usr/lib/python2.7/httplib.py", line 1137, in getresponse response.begin() File "/usr/lib/python2.7/httplib.py", line 448, in begin version, status, reason = self._read_status() File "/usr/lib/python2.7/httplib.py", line 412, in _read_status raise BadStatusLine("No status line received - the server has closed the connection") BadStatusLine: No status line received - the server has closed the connection

Description

I'm actually not familiar with the website, I was just looking for a video from someone who closed their youtube account, and found a mirror on this site. There appear to be open pull requests on youtube-dl for this site, so this may be as simple as merging one of those