From 248270e3a0c3fc17d7ea56481293a7fb8e002583 Mon Sep 17 00:00:00 2001 From: RandomNinjaAtk Date: Fri, 28 Oct 2022 08:46:42 -0400 Subject: [PATCH] 1.0.259 - Enhanced Debugging + Bugfix for non native formats --- root/scripts/audio.sh | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/root/scripts/audio.sh b/root/scripts/audio.sh index d15af31..f2f0142 100644 --- a/root/scripts/audio.sh +++ b/root/scripts/audio.sh @@ -1,5 +1,5 @@ #!/usr/bin/env bash -scriptVersion="1.0.258" +scriptVersion="1.0.259" if [ -z "$lidarrUrl" ] || [ -z "$lidarrApiKey" ]; then lidarrUrlBase="$(cat /config/config.xml | xq | jq -r .Config.UrlBase)" if [ "$lidarrUrlBase" == "null" ]; then @@ -181,6 +181,8 @@ DownloadFormat () { else bitrateError="false" audioFormatError="false" + tidalQuality=HiFi + deemixQuality=flac case "$audioBitrate" in lossless | high | low) @@ -411,7 +413,7 @@ TidalClientTest () { while [ $i -lt 3 ]; do i=$(( $i + 1 )) TidaldlStatusCheck - tidal-dl -q Normal -o "$downloadPath"/incomplete -l "166356219" &>/dev/null + tidal-dl -q Normal -o "$downloadPath"/incomplete -l "166356219" downloadCount=$(find "$downloadPath"/incomplete -type f -regex ".*/.*\.\(flac\|opus\|m4a\|mp3\)" | wc -l) if [ "$downloadCount" -le "0" ]; then continue @@ -554,7 +556,7 @@ DownloadProcess () { if [ "$downloadTry" == "1" ]; then DeezerClientTest fi - deemix -b $deemixQuality -p $downloadPath/incomplete "https://www.deezer.com/album/$1" &>/dev/null + deemix -b $deemixQuality -p $downloadPath/incomplete "https://www.deezer.com/album/$1" if [ -d "/tmp/deemix-imgs" ]; then rm -rf /tmp/deemix-imgs fi @@ -566,7 +568,7 @@ DownloadProcess () { TidalClientTest fi TidaldlStatusCheck - tidal-dl -q $tidalQuality -o $downloadPath/incomplete -l "$1" &>/dev/null + tidal-dl -q $tidalQuality -o "$downloadPath/incomplete" -l "$1" fi find "$downloadPath/incomplete" -type f -iname "*.flac" -newer "/temp-download" -print0 | while IFS= read -r -d '' file; do @@ -836,7 +838,7 @@ DeemixClientSetup () { DeezerClientTest () { log "DEEZER :: deemix client setup verification..." - deemix -b 128 -p $downloadPath/incomplete "https://www.deezer.com/album/197472472" &>/dev/null + deemix -b 128 -p $downloadPath/incomplete "https://www.deezer.com/album/197472472" if [ -d "/tmp/deemix-imgs" ]; then rm -rf /tmp/deemix-imgs fi