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 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

@FiloSottile FiloSottile commented Nov 6, 2012

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

@Tailszefox Tailszefox commented Nov 6, 2012

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

@vitorgalvao vitorgalvao commented Apr 15, 2017

#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

@yan12125 yan12125 commented Apr 15, 2017

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

@yan12125 yan12125 closed this Apr 15, 2017
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
5 participants
You can’t perform that action at this time.