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

Download the X most recent VODs from a chanel #83

Open
mouarflenoob opened this issue Dec 30, 2021 · 2 comments
Open

Download the X most recent VODs from a chanel #83

mouarflenoob opened this issue Dec 30, 2021 · 2 comments

Comments

@mouarflenoob
Copy link

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.

@ihabunek ihabunek changed the title [FEATURE REQUEST] download the X most recent VODs from a chanel Download the X most recent VODs from a chanel Feb 5, 2022
@gosadaque
Copy link

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.

@garoto
Copy link

garoto commented Mar 8, 2022

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants