From 00421aa29739d0c3469bdbf66c274914efa4263a Mon Sep 17 00:00:00 2001 From: RandomNinjaAtk Date: Wed, 14 Dec 2022 12:21:34 -0500 Subject: [PATCH] 1.0.306 - Show correct path for notfound in logs #162 --- root/scripts/Audio.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/root/scripts/Audio.sh b/root/scripts/Audio.sh index 7ce51cf..ec342c1 100644 --- a/root/scripts/Audio.sh +++ b/root/scripts/Audio.sh @@ -1,5 +1,5 @@ #!/usr/bin/env bash -scriptVersion="1.0.305" +scriptVersion="1.0.306" if [ -z "$lidarrUrl" ] || [ -z "$lidarrApiKey" ]; then lidarrUrlBase="$(cat /config/config.xml | xq | jq -r .Config.UrlBase)" if [ "$lidarrUrlBase" == "null" ]; then @@ -981,7 +981,7 @@ GetMissingCutOffList () { fi log "$page :: missing :: Downloading page $page... ($offset - $dlnumber of $lidarrMissingTotalRecords Results)" lidarrRecords=$(wget --timeout=0 -q -O - "$lidarrUrl/api/v1/wanted/missing?page=$page&pagesize=$amountPerPull&sortKey=$searchOrder&sortDirection=$searchDirection&apikey=${lidarrApiKey}" | jq -r '.records[].id') - log "$page :: missing :: Filtering Album IDs by removing previously searched Album IDs (/config/extended/notfound/)" + log "$page :: missing :: Filtering Album IDs by removing previously searched Album IDs (/config/extended/logs/notfound/)" for lidarrRecordId in $(echo $lidarrRecords); do if [ ! -f /config/extended/logs/notfound/$lidarrRecordId--* ]; then touch "/config/extended/cache/lidarr/list/${lidarrRecordId}-missing" @@ -1019,7 +1019,7 @@ GetMissingCutOffList () { log "$page :: cutoff :: Downloading page $page... ($offset - $dlnumber of $lidarrCutoffTotalRecords Results)" lidarrRecords=$(wget --timeout=0 -q -O - "$lidarrUrl/api/v1/wanted/cutoff?page=$page&pagesize=$amountPerPull&sortKey=$searchOrder&sortDirection=$searchDirection&apikey=${lidarrApiKey}" | jq -r '.records[].id') - log "$page :: cutoff :: Filtering Album IDs by removing previously searched Album IDs (/config/extended/notfound/)" + log "$page :: cutoff :: Filtering Album IDs by removing previously searched Album IDs (/config/extended/logs/notfound/)" for lidarrRecordId in $(echo $lidarrRecords); do if [ ! -f /config/extended/logs/notfound/$lidarrRecordId--* ]; then