There's a playlist with 3012 videos. I want to download the first 100 videos of this playlist, which are actually the 100 most recent videos, so I want %(playlist_index)s to start from 3012 to 2913 instead of 1 to 100. What I have now is just a basic shell script: youtube-dl --yes-playlist "www.youtube.com/playlist?list=3xAMpLe_iD" -o "%(playlist)s/%(playlist_index)s - %(title)s.%(ext)s" --download-archive archive.txt I'd like to keep track of the video order in reverse because the following week there might be 4 new videos then when I download those, the numbering should be 3016 to 3013 because it will come from the same playlist. I have no experience with youtube-dl python scripts but you may answer as if I know the basics. Also, how can I get the --download-archive file named to the %(playlist)s value in the same script? Continue reading...