Schaka / janitorr

Cleans your Radarr, Sonarr, Jellyseerr and Jellyfin before you run out of space
GNU General Public License v3.0
313 stars 7 forks source link

[Feature] Clean up Jellyseerr and Sonarr data for an entire show, if all seasons are gone #6

Closed Schaka closed 8 months ago

Schaka commented 8 months ago

Currently, we're cleaning up requests season by season for both Sonarr and Jellyseerr.

Once all seasons are gone, there should be some type of cleanup job that finds "empty" shows and removes them entirely from Sonarr as well as from Jellyseerr and (ideally) Jellyfin.

This way, we can avoid orphaned data even better than we already do.

I've noticed especially with Jellyseerr, it likes to keep data about Jellyfin, even when files are deleted and Jellyfin clearly doesn't think it continues to have episodes. The "Clear Data" button (inside Jellyseerr) solves this. It will require further investigation on how to do this properly.

The goal is to make it possible for users to request single seasons or entire shows again. We don't want to be stuck with Jellyseerr in a state that makes it unusable without intervention from an admin.

Notes:

Schaka commented 8 months ago

Should be implemented in v0.9.3b

Jellyseerr gets cleared up, when no data is available in Jellyfin anymore.

Jellyfin data SHOULD be cleaned up. If some is left behind, we need to make sure Jellyfin also cleans up empty seasons.

Additional requests to Jellyseerr should not be required.

I will monitor this and close the issue if it's working as expected.