v1.0.0052 configure deemix client with custom settings

Enables bitrate fallback
pull/6/head
RandomNinjaAtk 2 years ago committed by GitHub
parent 9796fbe2f2
commit c055eb3370
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -1,5 +1,5 @@
#!/usr/bin/env bash #!/usr/bin/env bash
scriptVersion="1.0.0051" scriptVersion="1.0.0052"
lidarrUrlBase="$(cat /config/config.xml | xq | jq -r .Config.UrlBase)" lidarrUrlBase="$(cat /config/config.xml | xq | jq -r .Config.UrlBase)"
if [ "$lidarrUrlBase" = "null" ]; then if [ "$lidarrUrlBase" = "null" ]; then
lidarrUrlBase="" lidarrUrlBase=""
@ -521,6 +521,16 @@ DeemixClientSetup () {
log ":: DEEZER :: ERROR :: arlToken setting invalid, currently set to: $arlToken" log ":: DEEZER :: ERROR :: arlToken setting invalid, currently set to: $arlToken"
fi fi
if [ -f "/config/xdg/deemix/config.json" ]; then
rm /config/xdg/deemix/config.json
fi
if [ -f "/config/extended/scripts/deemix_config.json" ]; then
log ":: DEEZER :: Configuring deemix client"
cp /config/extended/scripts/deemix_config.json /config/xdg/deemix/config.json
chmod 777 /config/xdg/deemix/config.json
fi
if [ -d /config/extended/cache/deezer ]; then if [ -d /config/extended/cache/deezer ]; then
log ":: DEEZER :: Purging album list cache..." log ":: DEEZER :: Purging album list cache..."
find /config/extended/cache/deezer -type f -name "*-albums.json" -delete find /config/extended/cache/deezer -type f -name "*-albums.json" -delete

Loading…
Cancel
Save