From 2f466c4f6583968e06ab7a55852059046cef4344 Mon Sep 17 00:00:00 2001 From: RandomNinjaAtk Date: Fri, 24 Jun 2022 15:28:17 +0000 Subject: [PATCH] v1.0.0059 - Strip invlaid characters from arlToken to prevent errors from user mistakes... --- root/scripts/download.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/root/scripts/download.sh b/root/scripts/download.sh index 511a563..73b8958 100644 --- a/root/scripts/download.sh +++ b/root/scripts/download.sh @@ -1,5 +1,5 @@ #!/usr/bin/env bash -scriptVersion="1.0.0058" +scriptVersion="1.0.0059" lidarrUrlBase="$(cat /config/config.xml | xq | jq -r .Config.UrlBase)" if [ "$lidarrUrlBase" = "null" ]; then lidarrUrlBase="" @@ -518,6 +518,7 @@ NotifyLidarrForImport () { DeemixClientSetup () { log ":: DEEZER :: Verifying deemix configuration" if [ ! -z "$arlToken" ]; then + arlToken="$(echo $arlToken | sed -e "s%[^[:alpha:][:digit:]]%%g" -e "s/ */ /g" | sed 's/^[.]*//' | sed 's/[.]*$//g' | sed 's/^ *//g' | sed 's/ *$//g')" # Create directories mkdir -p /config/xdg/deemix if [ -f "/config/xdg/deemix/.arl" ]; then