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

[bilibili.com]please add download playlist #17629

Open
shootoutrw opened this issue Sep 22, 2018 · 4 comments
Open

[bilibili.com]please add download playlist #17629

shootoutrw opened this issue Sep 22, 2018 · 4 comments

Comments

@shootoutrw
Copy link

@shootoutrw shootoutrw commented Sep 22, 2018

Please follow the guide below

  • You will be asked some questions and requested to provide some information, please read them carefully and answer honestly
  • Put an x into all the boxes [ ] relevant to your issue (like this: [x])
  • Use the Preview tab to see what your issue will actually look like

Make sure you are using the latest version: run youtube-dl --version and ensure your version is 2018.09.18. If it's not, read this FAQ entry and update. Issues with outdated version will be rejected.

  • I've verified and I assure that I'm running youtube-dl 2018.09.18

Before submitting an issue make sure you have:

  • At least skimmed through the README, most notably the FAQ and BUGS sections
  • Searched the bugtracker for similar issues including closed ones
  • Checked that provided video/audio/playlist URLs (if any) are alive and playable in a browser

What is the purpose of your issue?

  • Bug report (encountered problems with youtube-dl)
  • Site support request (request for adding support for a new site)
  • Feature request (request for a new functionality)
  • Question
  • Other

If the purpose of this issue is a site support request please provide all kinds of example URLs support for which should be included (replace following example URLs by yours):

@VectoAbhi
Copy link

@VectoAbhi VectoAbhi commented Sep 25, 2018

By the way, playlists can be downloaded with the help of "youtube-dl" command. I did it many times.

@zhongh3
Copy link

@zhongh3 zhongh3 commented Sep 25, 2018

By the way, playlists can be downloaded with the help of "youtube-dl" command. I did it many times.

I think it doesn't work now since bilibili has change the implementation of playlist. Here's how different parts are referenced now,
e.g.
https://www.bilibili.com/video/av28148919/?p=2
https://www.bilibili.com/video/av28148919/?p=3
https://www.bilibili.com/video/av28148919/?p=4

@shootoutrw
Copy link
Author

@shootoutrw shootoutrw commented Sep 26, 2018

@VectoAbhi @zhongh3

C:\Users\Administrator>youtube-dl -v --yes-playlist https://www.bilibili.com/vid
eo/av28148919
[debug] System config: []
[debug] User config: ['--external-downloader', 'aria2c', '--external-downloader-
args', '-x 16 -k 1M', '-o', '%(title)s.%(ext)s']
[debug] Custom config: []
[debug] Command-line args: ['-v', '--yes-playlist', 'https://www.bilibili.com/vi
deo/av28148919']
[debug] Encodings: locale cp936, fs utf-8, out utf-8, pref cp936
[debug] youtube-dl version 2018.09.18
[debug] Python version 3.7.0 (CPython)
[debug] exe versions: ffmpeg 4.0.2, ffprobe 4.0.2
[debug] Proxy map: {}
[BiliBili] 28148919: Downloading webpage
[BiliBili] 28148919: Downloading video info page
[download] Downloading playlist: Python 2018最新版
[BiliBili] playlist Python 2018最新版: Collected 3 video ids (downloading 3 of t
hem)
[download] Downloading video 1 of 3
[debug] Default format spec: bestvideo+bestaudio/best
[debug] Invoking downloader on 'http://cn-hbxy-cmcc-v-01.acgvideo.com/upgcxcode/
73/86/48648673/48648673-1-80.flv?expires=1537924800&platform=pc&ssig=dcqPor73NFr
pIMn1VgN9SQ&oi=614310017&nfa=7VMUDqBQpI8VGBbhQ1faUQ==&dynamic=1&hfa=2040129153&h
fb=Yjk5ZmZjM2M1YzY4ZjAwYTMzMTIzYmIyNWY4ODJkNWI=&trid=2b8b9b9407b24c34896207f21a1
cc09b&nfc=1'
[download] Destination: Python 2018最新版.flv
[debug] aria2c command line: aria2c -c -x 16 -k 1M --out "Python 2018最新版.flv.
part" --header "User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:59.0) Gecko/20100
101 Firefox/59.0" --header "Accept-Charset: ISO-8859-1,utf-8;q=0.7,;q=0.7" --he
ader "Accept: text/html,application/xhtml+xml,application/xml;q=0.9,
/*;q=0.8" -
-header "Accept-Encoding: gzip, deflate" --header "Accept-Language: en-us,en;q=0
.5" --header "Referer: https://www.bilibili.com/video/av28148919" "--check-certi
ficate=true" -- "http://cn-hbxy-cmcc-v-01.acgvideo.com/upgcxcode/73/86/48648673/
48648673-1-80.flv?expires=1537924800&platform=pc&ssig=dcqPor73NFrpIMn1VgN9SQ&oi=
614310017&nfa=7VMUDqBQpI8VGBbhQ1faUQ==&dynamic=1&hfa=2040129153&hfb=Yjk5ZmZjM2M1
YzY4ZjAwYTMzMTIzYmIyNWY4ODJkNWI=&trid=2b8b9b9407b24c34896207f21a1cc09b&nfc=1"

09/25 18:23:59 [NOTICE] Downloading 1 item(s)

09/25 18:24:00 [NOTICE] Allocating disk space. Use --file-allocation=none to dis
able it. See --file-allocation option in man page for more details.
[#fc81ad 17MiB/17MiB(99%) CN:1 DL:275KiB]
09/25 18:24:44 [NOTICE] Download complete: C:/Users/Administrator/Python 2018最
新版.flv.part

Download Results:
gid |stat|avg speed |path/URI
======+====+===========+=======================================================
fc81ad|OK | 411KiB/s|C:/Users/Administrator/Python 2018最新版.flv.part

Status Legend:
(OK):download completed.
[aria2c] Downloaded 18678381 bytes
[download] 100% of 17.81MiB in 00:45
[download] Downloading video 2 of 3
[debug] Default format spec: bestvideo+bestaudio/best
[debug] Invoking downloader on 'http://cn-hbxy-cmcc-v-01.acgvideo.com/upgcxcode/
73/86/48648673/48648673-2-80.flv?expires=1537924800&platform=pc&ssig=ipmpsh-ipuT
RqVSKiJpSZg&oi=614310017&nfa=7VMUDqBQpI8VGBbhQ1faUQ==&dynamic=1&hfb=Yjk5ZmZjM2M1
YzY4ZjAwYTMzMTIzYmIyNWY4ODJkNWI=&trid=2b8b9b9407b24c34896207f21a1cc09b&nfc=1'
[download] Python 2018最新版.flv has already been downloaded
[download] 100% of 17.81MiB
[download] Downloading video 3 of 3
[debug] Default format spec: bestvideo+bestaudio/best
[debug] Invoking downloader on 'http://cn-hbxy-cmcc-v-01.acgvideo.com/upgcxcode/
73/86/48648673/48648673-3-80.flv?expires=1537924800&platform=pc&ssig=P_AcnI3Hv9h
ovOvnxFEemQ&oi=614310017&nfa=7VMUDqBQpI8VGBbhQ1faUQ==&dynamic=1&hfb=Yjk5ZmZjM2M1
YzY4ZjAwYTMzMTIzYmIyNWY4ODJkNWI=&trid=2b8b9b9407b24c34896207f21a1cc09b&nfc=1'
[download] Python 2018最新版.flv has already been downloaded
[download] 100% of 17.81MiB
[download] Finished downloading playlist: Python 2018最新版

@zhongh3
Copy link

@zhongh3 zhongh3 commented Sep 26, 2018

Current implementation only takes care of downloading parts of the same video, not the videos from the playlist. The parameter "?p=4" is currently ignored. Regardless of the "p" number, it's always use the cid of the 1st video of the playlist. Need to parse the html to get different cid for different "p" (i.e. "page").

@ytdl-org ytdl-org deleted a comment from Tankamin Oct 1, 2018
@ytdl-org ytdl-org locked and limited conversation to collaborators Oct 1, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
3 participants
You can’t perform that action at this time.