lay295 / TwitchDownloader

Twitch VOD/Clip Downloader - Chat Download/Render/Replay
MIT License
2.54k stars 260 forks source link

Automatically download VOD when stream ends #977

Open dlfsjdfjodifjsodifjsdo opened 4 months ago

dlfsjdfjodifjsodifjsdo commented 4 months ago

Checklist

Write your feature request here

Is such a thing possible within the app? There are many cases where VODs get deleted before I can download them.

glubsy commented 4 months ago

Why not download the stream as it is being broadcasted?

There are tools available for that: example here.

Triggering download on the VOD as soon as it ends would not be reliable anyway: the video Id changes when it becomes a VOD, and there is no guarantee that the VOD would not be deleted immediately after the stream has ended.

superbonaci commented 4 months ago

@glubsy But if you start downloading a VOD after it has ended, and they delete it, won't allow you to complete the download once you've started, or takes action immediately regardless?

That script you mention, what happens if you run it a while after the stream has started, will it download everything from the beginning or only the content as it goes? Because that will mean you must start capturing as soon as the stream begins.

superbonaci commented 4 months ago

The script you link https://github.com/mrwnwttk/livestream_scripts indeed downloads the stream as it is being broadcasted, but doesn't get the whole stream from the beginning, only from that point going forward. That means you have the run the script before the stream begins so keeps monitoring it...

I've reported the issue let's see what they say about it: