From dc5169e7212623725e60f2bda6b2ba3460acf129 Mon Sep 17 00:00:00 2001 From: RandomNinjaAtk Date: Tue, 15 Aug 2023 14:07:49 +0000 Subject: [PATCH] 2.12 - fallback to yt #58 - untested, should resolve... --- lidarr/Audio.service.bash | 19 +++++++++++++++---- 1 file changed, 15 insertions(+), 4 deletions(-) diff --git a/lidarr/Audio.service.bash b/lidarr/Audio.service.bash index 16ffa05..6a7ac9e 100644 --- a/lidarr/Audio.service.bash +++ b/lidarr/Audio.service.bash @@ -1,5 +1,5 @@ #!/usr/bin/with-contenv bash -scriptVersion="2.11" +scriptVersion="2.12" scriptName="Audio" ### Import Settings @@ -151,7 +151,7 @@ Configuration () { } DownloadClientFreyr () { - freyr --no-bar -d $audioPath/incomplete deezer:album:$1 + freyr --no-bar -d $audioPath/incomplete deezer:album:$1 2>&1 | tee -a /config/logs/$scriptName.txt } DownloadFormat () { @@ -472,15 +472,26 @@ DownloadProcess () { if [ -z $arlToken ]; then rm -rf "$audioPath"/incomplete/* log "$page :: $wantedAlbumListSource :: $processNumber of $wantedListAlbumTotal :: $lidarrArtistName :: $lidarrAlbumTitle :: $lidarrAlbumType :: All $failedDownloadAttemptThreshold Download Attempts failed, skipping..." - else + else DeezerClientTest - if [ "$deezerClientTest" == "success" ]; then + if [ "$deezerClientTest" == "success" ]; then log "$page :: $wantedAlbumListSource :: $processNumber of $wantedListAlbumTotal :: $lidarrArtistName :: $lidarrAlbumTitle :: $lidarrAlbumType :: All $failedDownloadAttemptThreshold Download Attempts failed, skipping..." + deemixFail=0 fi fi fi fi + if [ "$2" == "DEEZER" ]; then + if [ $deemixFail -eq $failedDownloadAttemptThreshold ]; then + if [ -z $arlToken ]; then + DownloadClientFreyr $1 + else + deemix -b $deemixQuality -p "$audioPath"/incomplete "https://www.deezer.com/album/$1" 2>&1 | tee -a /config/logs/$scriptName.txt + fi + fi + fi + if [ "$2" == "TIDAL" ]; then TidaldlStatusCheck