twitch-dl icon indicating copy to clipboard operation
twitch-dl copied to clipboard

Download the X most recent VODs from a chanel

Open mouarflenoob opened this issue 3 years ago • 2 comments

Hello, I have seen several request for adding multiple downloads in the script in one form or another. I'm here to request an other one, but one I think that can be of interest to a lot of people : adding a simple way to download the X most recent VODs from a channel. For example, I want to download the last 5 VODs from channel abc12345 I type : twitch-dl downloadMultiple -n 5 -q source abc12345

Is that something that would be doable ?

I could also use a script to first list the ID for the 5 latest VODs and then download them all in the script using the usual command. If anyone has worked on this, and can help me start my script, I would appreciate it.

mouarflenoob avatar Dec 30 '21 20:12 mouarflenoob

It's not the added feature, but I created for myself a python script to download streamers' clips of last week. You can see it here: https://github.com/gosadaque/small-script-collection-public/blob/main/downloadLastWeeksTwitchClips.py

The script downloads each streamer's json and sorts it by id (from oldest to newest). So the last array entry is the newest. Just edit the loop to go over the last 5 instead over all.

gosadaque avatar Mar 08 '22 13:03 gosadaque

for /f %N in ('twitch-dl.exe videos -t archive --limit 5 --no-color abc12345 ^| findstr /r ^http') do @echo twitch-dl.exe download --max-workers 8 --format mp4 --quality source %N

garoto avatar Mar 08 '22 15:03 garoto