rfsbraz / deleterr

Deleterr is a Python script designed to help you manage available disk space in your Plex media server.
MIT License
118 stars 6 forks source link

Ability to exclude shows that have not ended #58

Open nylonee opened 6 months ago

nylonee commented 6 months ago

This mainly applies to TV Shows, but I imagine there might be a world in anime/movies where the same configuration might be useful.

I want Deleterr to not delete shows that are continuing, only shows that have ended. This is useful if I am waiting around for a new season of a show.

I think Sonarr has information on a show that includes whether it's continuing/ended, so this might be a simple check against Sonarr?

rfsbraz commented 5 months ago

Yeah this is not hard to add, I'll work on supporting show's status!

nylonee commented 5 months ago

I just did a similar implementation in my own project, it wasn't hard at all! When fetching the list of shows from Sonarr, there are two possible fields you can use:
status (which is either "continuing" or "ended") ended (true or false)

However in some rare cases, neither of those fields show up, I haven't quite tracked down what edge cases cause that yet.