Simple script, which deletes movies with a specific tag after a certain amount of days
- Clone this repo and cd into the cloned dir
- Run
pip3 install pyarr python-dotenv
- Create a
.env
file in the same dir withradarr_autodelete.py
- Add the following envs to
.env
RADARR_APIKEY= RADARR_HOST=
- Add your API Key and Hostname or IP (Hostname and IP have to http:// or https:// before)
- Run this script with
python3 radarr_autodelete.py --keeptime 30 --filtertag NameOfYourList
- Make sure
docker-compose
is installed - Clone this repo and cd into the cloned dir
- Create a
.env
file in the same dir withdocker-compose.yml
- Add the following envs to
.env
RADARR_APIKEY= RADARR_HOST= KEEPTIME= FILTERTAG=
- Add your API Key, Hostname or IP (Hostname and IP have to http:// or https:// before),tag which should be scanned and how long the movies should be kept before deleting.
- Run
docker-compose up -d
--keeptime
The keeptime arguments only expects full days and defaults to 30 days and is optional.
--filtertag
This is the tag this script will look for. This means untagged movies or movies with a different tag will not be touched. filtertag has to be provided.
--deleteunavailablemovies
Without this flag movies will only be removed if the movies has been downloaded 30 days before run. If this flag is set movies will be deleted if they are older than 30 days and have not been downloaded yet. This flag is meant for clean up in cases where a movie cant be found within an expected time frame and quality.
--dryrun
This is meant to show which movies would be deleted if the flag wasnt set. Omit to delete movies.
--verbose
Set this flag for a more detailed output.