Code forked from sonarr-radarr-queue-cleaner.
This fork is just a simplified version of the MattDGTL repo
- Docker
- Python 3.9 or higher
- Clone this repository to your local machine
- Edit the Dockerfile inserting the correct URLs and api keys. One of the URL may remain blank
- Create the image with
sudo docker build . -t docker/qcleanerr(you may choose the name you like)
Once every 10 minutes the script connects to the download service (Radarr|Sonarr) and gets the list of running downloads. Then, it checks which of them is in a failure state and tracks all of them. When a download entry stays in failure state for more than one hour (this can be set in the code, may become a parameter in the future), it's removed from the download client and blacklisted, so the service will not re-add it anymore.
The failure-check criteria is customizable in the function isFailed(record). See the /api/v3/queue.
Note: the 'record' object is passed to this function.
Feel free to suggest improvements and contribute to the project