Monday, May 20, 2024
 Popular · Latest · Hot · Upcoming
5
rated 0 times [  5] [ 0]  / answers: 1 / hits: 5575  / 3 Years ago, tue, august 10, 2021, 4:08:03

I've written a script for Youtube-dl which scans the number of files in a folder then starts downloading from a playlist from that number so that it only downloads new songs from that playlist. The problem is that it starts downloading from the oldest songs. However when I use --playlist-reverse it ignores it and still downloads the oldest. This is what I have it as now:



youtube-dl --playlist-reverse --playlist-start `ls -1 | wc -l` -wic "URL of Soundcloud playlist"


I also understand that youtube-dl automatically doesn't re-download however it scans each file one by one. This becomes tedious when it has to scan 400+ files.


More From » youtube-dl

 Answers
1

The option --playlist-reverse downloads the playlist videos in reverse order. It doesn't reverse the order of the playlist itself. For example, with a playlist containing 5 items:



youtube-dl --playlist-start 3 ...


will download items 3 then 4 then 5



youtube-dl --playlist-start 3 --playlist-reverse ...


will download items 5 then 4 then 3, not 3, 2, and 1


[#18035] Thursday, August 12, 2021, 3 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
kilusy

Total Points: 171
Total Questions: 110
Total Answers: 128

Location: Cayman Islands
Member since Sat, Dec 5, 2020
4 Years ago
;