allow to set url / token externally to connect to remote lidarr instance

pull/35/head
randomuser345 2 years ago
parent 2b1abc2dd9
commit 63f98b75ed

@ -1,5 +1,6 @@
#!/usr/bin/env bash #!/usr/bin/env bash
scriptVersion="1.0.216" scriptVersion="1.0.216"
if [ -z "$lidarrUrl" ] || [ -z "$lidarrApiKey" ]; then
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=""
@ -8,6 +9,7 @@ else
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}"
fi
agent="lidarr-extended ( https://github.com/RandomNinjaAtk/docker-lidarr-extended )" agent="lidarr-extended ( https://github.com/RandomNinjaAtk/docker-lidarr-extended )"
musicbrainzMirror=https://musicbrainz.org musicbrainzMirror=https://musicbrainz.org

@ -1,5 +1,7 @@
#!/usr/bin/env bash #!/usr/bin/env bash
scriptVersion="1.0.008" scriptVersion="1.0.008"
if [ -z "$lidarrUrl" ] || [ -z "$lidarrApiKey" ]; then
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=""
@ -8,6 +10,8 @@ else
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}"
fi
agent="lidarr-extended ( https://github.com/RandomNinjaAtk/docker-lidarr-extended )" agent="lidarr-extended ( https://github.com/RandomNinjaAtk/docker-lidarr-extended )"
musicbrainzMirror=https://musicbrainz.org musicbrainzMirror=https://musicbrainz.org

Loading…
Cancel
Save