1.0.287 - still debugging cutoff upgrade process...

pull/139/head
RandomNinjaAtk 2 years ago committed by GitHub
parent 00310a86d6
commit 32388cad34
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -1,5 +1,5 @@
#!/usr/bin/env bash
scriptVersion="1.0.286"
scriptVersion="1.0.287"
if [ -z "$lidarrUrl" ] || [ -z "$lidarrApiKey" ]; then
lidarrUrlBase="$(cat /config/config.xml | xq | jq -r .Config.UrlBase)"
if [ "$lidarrUrlBase" == "null" ]; then
@ -1184,7 +1184,7 @@ SearchProcess () {
lidarrAlbumType=$(echo "$lidarrAlbumData" | jq -r ".albumType")
lidarrAlbumTitle=$(echo "$lidarrAlbumData" | jq -r ".title")
lidarrAlbumForeignAlbumId=$(echo "$lidarrAlbumData" | jq -r ".foreignAlbumId")
cutoffNotify="true"
cutoffNotify="false"
if [ -f "/config/extended/logs/notfound/$wantedAlbumId--$lidarrArtistForeignArtistId--$lidarrAlbumForeignAlbumId" ]; then
log "$processNumber of $wantedListAlbumTotal :: $wantedAlbumListSource :: $lidarrAlbumType :: $wantedAlbumListSource :: $lidarrArtistName :: $lidarrAlbumTitle :: Previously Not Found, skipping..."
@ -1933,10 +1933,10 @@ CheckLidarrBeforeImport () {
return
fi
if [ "$wantedAlbumListSource" == "cutoff" ]; then
if [ "$cutoffNotify" == "false" ]; then
if [ "$cutoffNotify" == "true" ]; then
log "$processNumber of $wantedListAlbumTotal :: $wantedAlbumListSource :: $lidarrArtistName :: $lidarrAlbumTitle :: $lidarrAlbumType :: Already Imported Album (CutOff), skipping..."
alreadyImported=true
cutoffNotiy="true"
cutoffNotiy="false"
return
fi
fi

Loading…
Cancel
Save