Update AutoExtras.service
This commit is contained in:
parent
94837219f2
commit
d6c89aa3fd
1 changed files with 2 additions and 11 deletions
|
@ -55,15 +55,6 @@ AutoExtrasProcess () {
|
||||||
fi
|
fi
|
||||||
exec &> >(tee -a "/config/logs/AutoExtras.txt")
|
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")
|
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)
|
radarrMovieTotal=$(echo "${radarrMovieList}" | jq -r '.[] | select(.hasFile==true) | .id' | wc -l)
|
||||||
radarrMovieIds=$(echo "${radarrMovieList}" | jq -r '.[] | select(.hasFile==true) | .id')
|
radarrMovieIds=$(echo "${radarrMovieList}" | jq -r '.[] | select(.hasFile==true) | .id')
|
||||||
|
@ -72,7 +63,7 @@ AutoExtrasProcess () {
|
||||||
for id in $(echo $radarrMovieIds); do
|
for id in $(echo $radarrMovieIds); do
|
||||||
loopCount=$(( $loopCount + 1 ))
|
loopCount=$(( $loopCount + 1 ))
|
||||||
log "$loopCount of $radarrMovieTotal :: $id :: Processing with Extras.bash"
|
log "$loopCount of $radarrMovieTotal :: $id :: Processing with Extras.bash"
|
||||||
bash /config/extended/Extras.bash "$id" "$cookiesFile"
|
bash /config/extended/Extras.bash "$id"
|
||||||
done
|
done
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue