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

Downloads all pages of the playlist even though only the first is needed #2175

Closed
rtega opened this issue Jan 19, 2014 · 5 comments
Closed

Downloads all pages of the playlist even though only the first is needed #2175

rtega opened this issue Jan 19, 2014 · 5 comments

Comments

@rtega
Copy link

@rtega rtega commented Jan 19, 2014

I was wondering whether youtube-dl can't be more smart when using playlist-start and playlist-end. When using with playlists like http://www.youtube.com/user/ANNnewsCH/videos it first downloads all ids, even though there are thousands, before it finally decides on using only the first 10. Is it not possible to only download the ids needed? The same thing happens with long playlists.

@phihag
Copy link
Contributor

@phihag phihag commented Jan 20, 2014

Thanks for the report. I've proposed an optimization that does that (#2182). Due to the complexity of the change, I'd like to have another developer look over it before we include the change into mainline youtube-dl.

@rtega
Copy link
Author

@rtega rtega commented Jan 20, 2014

Thanks for the quick reply!

2014/1/20 Philipp Hagemeister notifications@github.com

Thanks for the report. I've proposed an optimization that does that (#2182#2182).
Due to the complexity of the change, I'd like to have another developer
look over it before we include the change into mainline youtube-dl.


Reply to this email directly or view it on GitHubhttps://github.com//issues/2175#issuecomment-32749308
.

@phihag phihag closed this in b7ab059 Jan 22, 2014
@rtega
Copy link
Author

@rtega rtega commented Jan 23, 2014

This works for the given playlist but nog for one like this http://www.youtube.com/watch?v=EZ0nZ_ygPsk&list=UUoQBJMzcwmXrRSHBFAlTsIw

@phihag phihag reopened this Jan 23, 2014
@cedricvanrompay
Copy link

@cedricvanrompay cedricvanrompay commented Aug 2, 2015

We are more than a year later and the problem still exists it seems, at least I'm having it on a dailymotion playlist:

$ youtube-dl --playlist-end 4 http://www.dailymotion.com/user/libezap/1
[dailymotion:user] libezap: Downloading webpage
[dailymotion:user] libezap: Downloading page 1
[dailymotion:user] libezap: Downloading page 2
[dailymotion:user] libezap: Downloading page 3
[dailymotion:user] libezap: Downloading page 4
[dailymotion:user] libezap: Downloading page 5
[dailymotion:user] libezap: Downloading page 6
[dailymotion:user] libezap: Downloading page 7
[dailymotion:user] libezap: Downloading page 8
[dailymotion:user] libezap: Downloading page 9
[dailymotion:user] libezap: Downloading page 10
^C
ERROR: Interrupted by user

Note: There are more than 150 pages on this playlist ...

jaimeMF added a commit that referenced this issue Aug 2, 2015
So that using '--playlist-end' only downloads the required pages (reported in #2175).
@jaimeMF
Copy link
Collaborator

@jaimeMF jaimeMF commented Aug 2, 2015

@cedricvanrompay in the next version it will only download the required pages for dailymotion playlists and users, thanks for the report.

@rtega YouTube playlists are also optimized now, therefore I'm closing the issue.

@jaimeMF jaimeMF closed this Aug 2, 2015
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.

4 participants
You can’t perform that action at this time.