Closed rfsbraz closed 4 months ago
:robot: A Docker image for this PR is available to test with:
docker run -e LOG_LEVEL=DEBUG --rm -v ./config:/config -v ./logs:/config/logs ghcr.io/rfsbraz/deleterr:pr-70
This assumes you have a config
and logs
directory where you're running the command. You can adjust the volume mounts as needed.
This PR adds support for setting disk size thresholds.
Library deletion rules will only apply if the available disk size is below the threshold you defined, like so:
The list can include multiple paths, but all of them must exist in the Sonarr/Radarr list of paths (you can check it through
/system/status
on your instance. This is becausedeleterr
and the instances can run on entirely different contexts so we have no way of checking the disk size directly, unless the data paths were mapped into the containerdeleterr
is running on, and I'm afraid that would introduce to much attrition to the setup.