From d6c89aa3fdecdfd62dac812b2578e3b571a27187 Mon Sep 17 00:00:00 2001 From: RandomNinjaAtk Date: Sun, 9 Jul 2023 11:57:17 -0400 Subject: [PATCH] Update AutoExtras.service --- radarr/AutoExtras.service | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) diff --git a/radarr/AutoExtras.service b/radarr/AutoExtras.service index 1f4775c..e0f936c 100644 --- a/radarr/AutoExtras.service +++ b/radarr/AutoExtras.service @@ -54,16 +54,7 @@ AutoExtrasProcess () { chmod 777 "/config/logs/AutoExtras.txt" fi exec &> >(tee -a "/config/logs/AutoExtras.txt") - - # Check for cookies file - if [ -f /config/cookies.txt ]; then - cookiesFile="/config/cookies.txt" - log "Cookies File Found!" - else - log "Cookies File Not Found!" - cookiesFile="" - fi - + radarrMovieList=$(curl -s --header "X-Api-Key:"${arrApiKey} --request GET "$arrUrl/api/v3/movie") radarrMovieTotal=$(echo "${radarrMovieList}" | jq -r '.[] | select(.hasFile==true) | .id' | wc -l) radarrMovieIds=$(echo "${radarrMovieList}" | jq -r '.[] | select(.hasFile==true) | .id') @@ -72,7 +63,7 @@ AutoExtrasProcess () { for id in $(echo $radarrMovieIds); do loopCount=$(( $loopCount + 1 )) log "$loopCount of $radarrMovieTotal :: $id :: Processing with Extras.bash" - bash /config/extended/Extras.bash "$id" "$cookiesFile" + bash /config/extended/Extras.bash "$id" done }