1.0.0050 - bug fix quality settings

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

@ -1,5 +1,5 @@
#!/usr/bin/env bash
scriptVersion="1.0.0049"
scriptVersion="1.0.0050"
lidarrUrlBase="$(cat /config/config.xml | xq | jq -r .Config.UrlBase)"
if [ "$lidarrUrlBase" = "null" ]; then
lidarrUrlBase=""
@ -297,10 +297,11 @@ TidalClientSetup () {
cp /config/extended/scripts/tidal-dl.json /config/xdg/.tidal-dl.json
chmod 777 -R /config/xdg/
fi
tidal-dl -o /downloads/lidarr-extended/incomplete
tidal-dl -r P1080
fi
DownloadFormat
# check for backup token and use it if exists
if [ ! -f /config/xdg/.tidal-dl.token.json ]; then
if [ -f /config/backup/tidal-dl.token.json ]; then
@ -346,17 +347,17 @@ TidalClientSetup () {
else
rm -rf /downloads/lidarr-extended/incomplete/*
fi
tidal-dl -o /downloads/lidarr-extended/incomplete -l "60261268"
downloadCount=$(find /downloads/lidarr-extended/incomplete/ -type f -regex ".*/.*\.\(flac\|opus\|m4a\|mp3\)" | wc -l)
if [ $downloadCount -le 0 ]; then
downloadCount=$(find /downloads/lidarr-extended/incomplete/ -type f -regex ".*/.*\.\(flac\|opus\|m4a\|mp3\)" | wc -l)
if [ $downloadCount -le 0 ]; then
log ":: tidal-dl client setup verification :: ERROR :: Download failed"
log ":: tidal-dl client setup verification :: ERROR :: Please review log for errors in client"
log ":: tidal-dl client setup verification :: ERROR :: Please review log for errors in client"
log ":: tidal-dl client setup verification :: ERROR :: Exiting..."
rm -rf /downloads/lidarr-extended/incomplete/*
exit
else
else
rm -rf /downloads/lidarr-extended/incomplete/*
log ":: tidal-dl client setup verification :: Download Verification Success"
fi

Loading…
Cancel
Save