|
|
@ -1,10 +1,10 @@
|
|
|
|
#!/usr/bin/env bash
|
|
|
|
#!/usr/bin/env bash
|
|
|
|
scriptVersion="1.0.0047"
|
|
|
|
scriptVersion="1.0.0048"
|
|
|
|
lidarrUrlBase="$(cat /config/config.xml | xq | jq -r .Config.UrlBase)"
|
|
|
|
lidarrUrlBase="$(cat /config/config.xml | xq | jq -r .Config.UrlBase)"
|
|
|
|
if [ "$lidarrUrlBase" = "null" ]; then
|
|
|
|
if [ "$lidarrUrlBase" = "null" ]; then
|
|
|
|
lidarrUrlBase=""
|
|
|
|
lidarrUrlBase=""
|
|
|
|
else
|
|
|
|
else
|
|
|
|
lidarrUrlBase="/${lidarrUrlBase}"
|
|
|
|
lidarrUrlBase="/$(echo "$lidarrUrlBase" | sed "s/\///g")"
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
lidarrApiKey="$(cat /config/config.xml | xq | jq -r .Config.ApiKey)"
|
|
|
|
lidarrApiKey="$(cat /config/config.xml | xq | jq -r .Config.ApiKey)"
|
|
|
|
lidarrUrl="http://127.0.0.1:8686${lidarrUrlBase}"
|
|
|
|
lidarrUrl="http://127.0.0.1:8686${lidarrUrlBase}"
|
|
|
|