v1.0.0059 - Strip invlaid characters from arlToken to prevent errors from user mistakes...

pull/6/head
RandomNinjaAtk 2 years ago committed by GitHub
parent f479181dae
commit 2f466c4f65
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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

Loading…
Cancel
Save