v1.6 - Switch to port

#17
This commit is contained in:
RandomNinjaAtk 2023-07-14 19:15:00 -04:00 committed by GitHub
parent 0ce868c877
commit a4ca2485f7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,5 +1,5 @@
#!/usr/bin/with-contenv bash
scriptVersion="1.5"
scriptVersion="1.6"
scriptName="Audio"
#### Import Settings
@ -41,9 +41,9 @@ verifyApiAccess () {
do
arrApiTest=""
arrApiVersion=""
if [ "$arrName" == "Sonarr" ] || [ "$arrName" == "Radarr" ]; then
if [ "$arrPort" == "8989" ] || [ "$arrPort" == "7878" ]; then
arrApiVersion="v3"
elif [ "$arrName" == "Lidarr" ] || [ "$arrName" == "Readarr" ]; then
elif [ "$arrPort" == "8686" ] || [ "$arrPort" == "8787" ]; then
arrApiVersion="v1"
fi
arrApiTest=$(curl -s "$arrUrl/api/$arrApiVersion/system/status?apikey=$arrApiKey" | jq -r .instanceName)