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 playlists in reverse order (Negative boundaries for --playlist-start & --playlist-end) #514

Closed
5moufl opened this issue Nov 5, 2012 · 4 comments
Labels

Comments

@5moufl
Copy link
Contributor

5moufl commented Nov 5, 2012

Let's say I want the n last videos from a playlist, it'd be nice to be able to use negative numbers like in python to do that.
For example if I want the last 100 videos from a playlist I could do

youtube-dl playlistURL --playlist-start -100
or
youtube-dl playlistURL --playlist-start -200 --playlist-101
if I want the previous 100 videos.

@FiloSottile
Copy link
Collaborator

I wonder how this would be handled by the poor command line parser... Another intuitive way to implement this feature (that I really like)?

@Tailszefox
Copy link
Contributor

Poor command line parser? Would it have trouble parsing the negative numbers because of the minus sign before it?

If it doesn't work there could always be another option added, like --playlist-reverse, which would then negate the meaning of --playlist-start and --playlist-end so that it acts the way described even with positive numbers. Depends which option seems the most intuitive...

@5moufl 5moufl changed the title Use of negative numbers with --playlist-start --playlist-end Download playlists in reverse order May 16, 2014
@5moufl 5moufl changed the title Download playlists in reverse order Download playlists in reverse order. Negative boundaries for --playlist-start & --playlist-end May 16, 2014
@5moufl 5moufl changed the title Download playlists in reverse order. Negative boundaries for --playlist-start & --playlist-end Download playlists in reverse order (Negative boundaries for --playlist-start & --playlist-end) May 16, 2014
@vitorgalvao
Copy link
Contributor

#6845 is a duplicate of this. In that issue the suggestion is that --playlist-reverse (maybe it did not exist when this issue was opened) should also affect --playlist-start and --playlist-end. That seems the most logical solution.

@yan12125
Copy link
Collaborator

Thanks. I'll close this as there are more discussions in #6845

joedborg referenced this issue in joedborg/youtube-dl Nov 17, 2020
[pull] master from ytdl-org:master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

5 participants