Download playlists in reverse order (Negative boundaries for --playlist-start & --playlist-end) #396

Closed
opened 2026-02-20 21:11:41 -05:00 by deekerman · 4 comments
Owner

Originally created by @5moufl on GitHub (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.

Originally created by @5moufl on GitHub (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 <pre>youtube-dl playlistURL --playlist-start -100</pre> or <pre>youtube-dl playlistURL --playlist-start -200 --playlist-101</pre> if I want the previous 100 videos.
deekerman 2026-02-20 21:11:41 -05:00
  • closed this issue
  • added the
    request
    label
Author
Owner

@FiloSottile commented on GitHub (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)?

@FiloSottile commented on GitHub (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)?
Author
Owner

@Tailszefox commented on GitHub (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...

@Tailszefox commented on GitHub (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...
Author
Owner

@vitorgalvao commented on GitHub (Apr 15, 2017):

https://github.com/rg3/youtube-dl/issues/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.

@vitorgalvao commented on GitHub (Apr 15, 2017): https://github.com/rg3/youtube-dl/issues/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.
Author
Owner

@yan12125 commented on GitHub (Apr 15, 2017):

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

@yan12125 commented on GitHub (Apr 15, 2017): Thanks. I'll close this as there are more discussions in #6845
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/youtube-dl#396
No description provided.