parent
8ed1bd9f8e
commit
dc5169e721
1 changed files with 15 additions and 4 deletions
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue