@ -1,5 +1,5 @@
#!/usr/bin/env bash
#!/usr/bin/env bash
scriptVersion = "1.0.07 3 "
scriptVersion = "1.0.07 4 "
if [ -z " $lidarrUrl " ] || [ -z " $lidarrApiKey " ] ; then
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) "
@ -9,11 +9,11 @@ if [ -z "$lidarrUrl" ] || [ -z "$lidarrApiKey" ]; then
lidarrUrlBase = " / $( echo " $lidarrUrlBase " | sed "s/\///g" ) "
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) "
lidarrAgentInstanceId = " $( echo " $lidarrApiKey " | cut -c1-8) "
lidarrPort = " $( cat /config/config.xml | xq | jq -r .Config.Port) "
lidarrPort = " $( cat /config/config.xml | xq | jq -r .Config.Port) "
lidarrUrl = " http:// 127.0.0.1 :${ lidarrPort } ${ lidarrUrlBase } "
lidarrUrl = " http:// localhost :${ lidarrPort } ${ lidarrUrlBase } "
fi
fi
agent = " lidarr-extended- ${ lidarrAgentInstanceId } ( 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
# Debugging Settings
# Debugging Settings