parent
b594bb9ded
commit
42cb529efa
1 changed files with 3 additions and 3 deletions
|
@ -1,5 +1,5 @@
|
||||||
#!/usr/bin/with-contenv bash
|
#!/usr/bin/with-contenv bash
|
||||||
scriptVersion="2.0"
|
scriptVersion="2.1"
|
||||||
scriptName="Video"
|
scriptName="Video"
|
||||||
|
|
||||||
#### Import Settings
|
#### Import Settings
|
||||||
|
@ -63,9 +63,9 @@ verifyApiAccess () {
|
||||||
do
|
do
|
||||||
arrApiTest=""
|
arrApiTest=""
|
||||||
arrApiVersion=""
|
arrApiVersion=""
|
||||||
if [ "$arrName" == "Sonarr" ] || [ "$arrName" == "Radarr" ]; then
|
if [ "$arrPort" == "8989" ] || [ "$arrPort" == "7878" ]; then
|
||||||
arrApiVersion="v3"
|
arrApiVersion="v3"
|
||||||
elif [ "$arrName" == "Lidarr" ] || [ "$arrName" == "Readarr" ]; then
|
elif [ "$arrPort" == "8686" ] || [ "$arrPort" == "8787" ]; then
|
||||||
arrApiVersion="v1"
|
arrApiVersion="v1"
|
||||||
fi
|
fi
|
||||||
arrApiTest=$(curl -s "$arrUrl/api/$arrApiVersion/system/status?apikey=$arrApiKey" | jq -r .instanceName)
|
arrApiTest=$(curl -s "$arrUrl/api/$arrApiVersion/system/status?apikey=$arrApiKey" | jq -r .instanceName)
|
||||||
|
|
Loading…
Reference in a new issue