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

Loading…
Cancel
Save