|
|
@ -1,13 +1,15 @@
|
|
|
|
#!/usr/bin/env bash
|
|
|
|
#!/usr/bin/env bash
|
|
|
|
scriptVersion="1.0.216"
|
|
|
|
scriptVersion="1.0.216"
|
|
|
|
lidarrUrlBase="$(cat /config/config.xml | xq | jq -r .Config.UrlBase)"
|
|
|
|
if [ -z "$lidarrUrl" ] || [ -z "$lidarrApiKey" ]; then
|
|
|
|
if [ "$lidarrUrlBase" = "null" ]; then
|
|
|
|
lidarrUrlBase="$(cat /config/config.xml | xq | jq -r .Config.UrlBase)"
|
|
|
|
lidarrUrlBase=""
|
|
|
|
if [ "$lidarrUrlBase" = "null" ]; then
|
|
|
|
else
|
|
|
|
lidarrUrlBase=""
|
|
|
|
lidarrUrlBase="/$(echo "$lidarrUrlBase" | sed "s/\///g")"
|
|
|
|
else
|
|
|
|
|
|
|
|
lidarrUrlBase="/$(echo "$lidarrUrlBase" | sed "s/\///g")"
|
|
|
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
lidarrApiKey="$(cat /config/config.xml | xq | jq -r .Config.ApiKey)"
|
|
|
|
|
|
|
|
lidarrUrl="http://127.0.0.1:8686${lidarrUrlBase}"
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
lidarrApiKey="$(cat /config/config.xml | xq | jq -r .Config.ApiKey)"
|
|
|
|
|
|
|
|
lidarrUrl="http://127.0.0.1:8686${lidarrUrlBase}"
|
|
|
|
|
|
|
|
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
|
|
|
|
|
|
|
|
|
|
|
|