2.12 - fallback to yt

#58 - untested, should resolve...
This commit is contained in:
RandomNinjaAtk 2023-08-15 14:07:49 +00:00 committed by GitHub
parent 8ed1bd9f8e
commit dc5169e721
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,5 +1,5 @@
#!/usr/bin/with-contenv bash #!/usr/bin/with-contenv bash
scriptVersion="2.11" scriptVersion="2.12"
scriptName="Audio" scriptName="Audio"
### Import Settings ### Import Settings
@ -151,7 +151,7 @@ Configuration () {
} }
DownloadClientFreyr () { 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 () { DownloadFormat () {
@ -472,15 +472,26 @@ DownloadProcess () {
if [ -z $arlToken ]; then if [ -z $arlToken ]; then
rm -rf "$audioPath"/incomplete/* rm -rf "$audioPath"/incomplete/*
log "$page :: $wantedAlbumListSource :: $processNumber of $wantedListAlbumTotal :: $lidarrArtistName :: $lidarrAlbumTitle :: $lidarrAlbumType :: All $failedDownloadAttemptThreshold Download Attempts failed, skipping..." log "$page :: $wantedAlbumListSource :: $processNumber of $wantedListAlbumTotal :: $lidarrArtistName :: $lidarrAlbumTitle :: $lidarrAlbumType :: All $failedDownloadAttemptThreshold Download Attempts failed, skipping..."
else else
DeezerClientTest DeezerClientTest
if [ "$deezerClientTest" == "success" ]; then if [ "$deezerClientTest" == "success" ]; then
log "$page :: $wantedAlbumListSource :: $processNumber of $wantedListAlbumTotal :: $lidarrArtistName :: $lidarrAlbumTitle :: $lidarrAlbumType :: All $failedDownloadAttemptThreshold Download Attempts failed, skipping..." log "$page :: $wantedAlbumListSource :: $processNumber of $wantedListAlbumTotal :: $lidarrArtistName :: $lidarrAlbumTitle :: $lidarrAlbumType :: All $failedDownloadAttemptThreshold Download Attempts failed, skipping..."
deemixFail=0
fi fi
fi fi
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 if [ "$2" == "TIDAL" ]; then
TidaldlStatusCheck TidaldlStatusCheck