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

Download only playlists created by user #20685

Closed
kik4444 opened this issue Apr 16, 2019 · 6 comments
Closed

Download only playlists created by user #20685

kik4444 opened this issue Apr 16, 2019 · 6 comments
Labels

Comments

@kik4444
Copy link

@kik4444 kik4444 commented Apr 16, 2019

If I provide the link https://www.youtube.com/user/USERNAME/playlists to youtube-dl, how can I filter only specific playlists to be downloaded, e.g. only playlists from the "Created Playlists" category, ignoring playlists such as "Liked videos", without directly giving it the link to every single playlist?

@remitamine
Copy link
Collaborator

@remitamine remitamine commented Apr 16, 2019

use the playlist group URL(contains shelf_id=).

@kik4444
Copy link
Author

@kik4444 kik4444 commented Apr 16, 2019

Though when I try playlists?shelf_id=0&view=1 or just playlists?shelf_id=0 or the entire playlists?view=1&sort=dd&shelf_id=0, it always either downloads everything regardless of my selection, including the liked videos, or it downloads only the first 4 latest playlists, ignoring the rest.

@remitamine
Copy link
Collaborator

@remitamine remitamine commented Apr 16, 2019

works fine for me, if it doesn't work for you then post the URLs you're trying to download(make sure you're using the latest version).

@kik4444
Copy link
Author

@kik4444 kik4444 commented Apr 16, 2019

Currently I'm testing it with (https://www.youtube.com/user/NicoB7700/playlists?view=1&sort=dd&shelf_id=0). I noticed that you get different links when selecting Created Playlists from the dropdown menu than from the Created Playlists button in the playlists tab. Namely pressing the button filters out Liked Videos whereas the dropdown menu link does not, but using the former in youtube-dl still includes the liked videos. And yes it's up to date

@remitamine
Copy link
Collaborator

@remitamine remitamine commented Apr 16, 2019

actually, the important parameter is view.
judging by the number of the extracted playlists it matches the number of playlists that appear on browser.

youtube-dl -J --flat-playlist 'https://www.youtube.com/user/NicoB7700/playlists?view=1&flow=grid' | jq '.entries | length'
150
youtube-dl -J --flat-playlist 'https://www.youtube.com/user/NicoB7700/playlists?view=52&flow=grid' | jq '.entries | length'
2
@kik4444
Copy link
Author

@kik4444 kik4444 commented Apr 16, 2019

The command youtube-dl -J --flat-playlist 'https://www.youtube.com/user/NicoB7700/playlists?view=1&flow=grid' seems to return all the playlist URLs, including ones for liked videos that I want to filter out

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

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