v1.0.156 - bugfix for non existant cache dir

pull/16/head
RandomNinjaAtk 2 years ago committed by GitHub
parent de424b6b0f
commit 29d37ad9cd
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.155" scriptVersion="1.0.156"
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=""
@ -421,6 +421,12 @@ TidalClientSetup () {
tidal-dl tidal-dl
fi fi
if [ ! -d /config/extended/cache/tidal ]; then
mkdir -p /config/extended/cache/tidal
chmod 777 /config/extended/cache/tidal
chown abc:abc /config/extended/cache/tidal
fi
if [ -d /config/extended/cache/tidal ]; then if [ -d /config/extended/cache/tidal ]; then
log ":: TIDAL :: Purging album list cache..." log ":: TIDAL :: Purging album list cache..."
find /config/extended/cache/tidal -type f -name "*.json" -delete find /config/extended/cache/tidal -type f -name "*.json" -delete

Loading…
Cancel
Save