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

Reverse playlist and then start from particular number #25943

Open
pramitbiswas opened this issue Jul 9, 2020 · 1 comment
Open

Reverse playlist and then start from particular number #25943

pramitbiswas opened this issue Jul 9, 2020 · 1 comment
Labels

Comments

@pramitbiswas
Copy link

@pramitbiswas pramitbiswas commented Jul 9, 2020

Checklist

  • I'm asking a question
  • I've looked through the README and FAQ for similar questions
  • I've searched the bugtracker for similar questions including closed ones

Question

WRITE QUESTION HERE

Want to download all uploaded videos of a channel in reverse order with the renaming of the filename adding a prefix number associated video number, i.e., first video uploaded should have 01 in front of the filename. I used the following command.

youtube-dl --playlist-reverse -o "SubFolder/%(playlist_index)s-%(title)s.%(ext)s" https://www.youtube.com/playlist?list=AbcdEf1GhIjK2lmn3OpqRs4t -f "bestvideo[height<=720][ext=mp4]+bestaudio/[height <=? 720]"

This works perfectly.

But I had to stop, unfortunately in the middle, say 6 videos downloaded. Thus, want to start from 7th. I used the following command.

youtube-dl --playlist-reverse -o "SubFolder/%(playlist_index)s-%(title)s.%(ext)s" https://www.youtube.com/playlist?list=AbcdEf1GhIjK2lmn3OpqRs4t -f "bestvideo[height<=720][ext=mp4]+bestaudio/[height <=? 720]" --playlist-start 7

Now, what it does is, 1st it removes the top 6 videos without reversing and then reverse the playlist (probably) and starts downloading from 1st video of the channel and the file name starts with 07 along with video title.

What I actually expected/wanted: a command that reverses the playlist first and then starts from --playlist-start.

Probably similar to this issue but that is opened from Sept 2015 :(.

@Asfolny
Copy link

@Asfolny Asfolny commented Jul 10, 2020

#24487 seems to be what you're waiting for, but needs reviewing (despite seeming incredibly simple) ...
As a workaround, --playlist-end should apply what you want

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.