-
Notifications
You must be signed in to change notification settings - Fork 10k
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
Youtube Mix playlist only downloads the first 25 videos #27672
Comments
This issue continues to persist on version (logs with updated version, identical behavior/issue. click to expand)
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Checklist
Verbose log
(in fact, sometimes it gets fewer than 25)
Description
youtube-dl only downloads (at most) 25 videos of every Youtube Mix playlist that I've tried, even when specifying
--playlist-end
. #3837 appears to have received a fix for this in 1b6182d (in 2016), but I was not able to find this code in the current codebase (maybe a regression at some point? The test case https://www.youtube.com/watch?v=W01L70IGBgE&index=2&list=RDOQpdSVF_k_w in that commit no longer works, in addition to the two playlists whose logs I've provided above).The mentioned solution (
repeatedly jumping to the last item in the downloaded YouTube Mix and downloading the newly fetched successive list of songs until the specified --playlist-end is reached (by default the size of two consecutive lists fetched)
) seems like what should be happening. But maybe there is a different cause for this bug?The url scheme of these mix playlists is slightly complex, as the
index
restarts on further paginations beyond the first 50 videos.This demonstrates how the indices change depending on the pagination into the Youtube Mix (click to expand).
(all output retrieved with
console.log(document.URL), [...document.querySelectorAll(".style-scope ytd-playlist-panel-video-renderer")].map( e => e.querySelector("a").getAttribute("href") + "\t\t" + e.querySelector("#video-title").innerText ).join("\n")
)initially on page load:
after clicking the last song in the Mix (index 25):
after clicking the last song in the Mix again (index 49):
note the indices into the Mix are renumbered as more videos are loaded in the Mix
The text was updated successfully, but these errors were encountered: