Contribute to ASK-ME-ABOUT-LOOM/purgeomatic development by creating an account on GitHub.
About a year and a half ago I posted a script I made for deleting movie content in your library not being watched. Folks really seemed to like it, and I still get comments on that thread every so often. So I've updated it!
Far and away, the two biggest requests I got were:
Make it do TV, too
Make a dry-run mode
Edit: Added just now: a protected mode when you volume mount a protected file!
Even better, no installation is required. You can run it as a docker container like so:
docker run --rm -it --env-file .env --network=host ghcr.io/ask-me-about-loom/purgeomatic:latest python delete.movies.unwatched.py
It now supports TV series as well. Thanks to a suggestion from /u/JimLahey-, I was able to get my head around the idea - I had always thought of managing TV shows as "collections of seasons" of media, but the reality is, if nobody has watched anything related to a TV show in a while, the whole thing can go! And that's what this does:
docker run --rm -it --env-file .env --network=host ghcr.io/ask-me-about-loom/purgeomatic:latest python delete.tv.unwatched.py
No more editing python, either. Create yourself a .env file, set up all of your config, and even enable dry run mode, so you can test to your heart's content:
It does not. My suggestion is to either set your threshold high enough that the content gets watched, or put it in a separate library of special content you don't want deleted.
Actually, yes! I got a really good suggestion on this and it now supports a whitelist of TMDB/TVDB IDs in a file called protected which you can volume mount when you call the container: