From 0b95d8f80ff9bf4e1b36197be8b02754eca34786 Mon Sep 17 00:00:00 2001 From: RandomNinjaAtk Date: Tue, 30 May 2023 10:54:16 +0000 Subject: [PATCH] 1.0.1 #245 --- root/scripts/AutoArtistAdder.bash | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/root/scripts/AutoArtistAdder.bash b/root/scripts/AutoArtistAdder.bash index 2de7c66..7761beb 100644 --- a/root/scripts/AutoArtistAdder.bash +++ b/root/scripts/AutoArtistAdder.bash @@ -1,5 +1,5 @@ #!/usr/bin/env bash -scriptVersion="1.0.009" +scriptVersion="1.0.1" if [ -z "$lidarrUrl" ] || [ -z "$lidarrApiKey" ]; then lidarrUrlBase="$(cat /config/config.xml | xq | jq -r .Config.UrlBase)" if [ "$lidarrUrlBase" == "null" ]; then @@ -8,11 +8,11 @@ if [ -z "$lidarrUrl" ] || [ -z "$lidarrApiKey" ]; then lidarrUrlBase="/$(echo "$lidarrUrlBase" | sed "s/\///g")" fi lidarrApiKey="$(cat /config/config.xml | xq | jq -r .Config.ApiKey)" - lidarrAgentInstanceId="$(echo "$lidarrApiKey" | cut -c1-8)" + lidarrAgentInstanceId="$(echo "$lidarrApiKey" | cut -c1-10)" lidarrPort="$(cat /config/config.xml | xq | jq -r .Config.Port)" lidarrUrl="http://localhost:${lidarrPort}${lidarrUrlBase}" fi -agent="lidarr-extended-${lidarrAgentInstanceId} ( https://github.com/RandomNinjaAtk/docker-lidarr-extended )" +agent="${lidarrAgentInstanceId} ( https://github.com/RandomNinjaAtk/docker-lidarr-extended )" musicbrainzMirror=https://musicbrainz.org # Debugging settings