Zibbp / ganymede

Twitch VOD and Live Stream archiving platform. Includes a rendered and real-time chat for each archive.
https://github.com/Zibbp/ganymede
GNU General Public License v3.0
494 stars 25 forks source link

Automatically delete VODs when certain capacities are exceeded #101

Closed KimPig closed 1 year ago

KimPig commented 1 year ago

Thank you for making a good program.

I have 300gb of free space on my server, but if it exceeds 200gb, I want to automatically delete the oldest VOD. Can this function be added?

Zibbp commented 1 year ago

Hi,

Ganymede is primarily an archiving platform and I don't believe automatically deleting VODs based on requirements fits in this application. Ganymede is meant to have a large mounted storage such as a NAS to house the VODs.

This is something you will have to make a script for yourself. Ganymede has an API you can use to fetch the VODs. Getting free storage space can be done with bash then once you find the oldest VOD in Ganymede you will also need to delete that folder, as Ganymede does not delete files.

Zibbp commented 1 year ago

Hey, I've implemented a retention settings based off how old a video is. Available in v1.2.12