From 0c1e2e235855d5bfe75f5ed9192fafe3f38231f7 Mon Sep 17 00:00:00 2001 From: RandomNinjaAtk Date: Mon, 5 Dec 2022 19:28:49 -0500 Subject: [PATCH] 1.0.301 - retryNotFound #150 --- root/scripts/Audio.sh | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/root/scripts/Audio.sh b/root/scripts/Audio.sh index f0d8249..50173be 100644 --- a/root/scripts/Audio.sh +++ b/root/scripts/Audio.sh @@ -1,5 +1,5 @@ #!/usr/bin/env bash -scriptVersion="1.0.300" +scriptVersion="1.0.301" if [ -z "$lidarrUrl" ] || [ -z "$lidarrApiKey" ]; then lidarrUrlBase="$(cat /config/config.xml | xq | jq -r .Config.UrlBase)" if [ "$lidarrUrlBase" == "null" ]; then @@ -256,11 +256,11 @@ DownloadFolderCleaner () { NotFoundFolderCleaner () { # check for completed download folder if [ -d /config/extended/logs/notfound ]; then - # check for notfound entries older than 90 days - if find /config/extended/logs/notfound -mindepth 1 -type f -mtime +90 | read; then - log "Removing prevously notfound lidarr album ids older than 90 days to give them a retry..." - # delete ntofound entries older than 90 days - find /config/extended/logs/notfound -mindepth 1 -type f -mtime +90 -delete + # check for notfound entries older than X days + if find /config/extended/logs/notfound -mindepth 1 -type f -mtime +$retryNotFound | read; then + log "Removing prevously notfound lidarr album ids older than $retryNotFound days to give them a retry..." + # delete ntofound entries older than X days + find /config/extended/logs/notfound -mindepth 1 -type f -mtime +$retryNotFound -delete fi fi }