1.0.286 - bug fix for cutoff processing

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

@ -1,5 +1,5 @@
#!/usr/bin/env bash
scriptVersion="1.0.285"
scriptVersion="1.0.286"
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="false"
cutoffNotify="true"
if [ -f "/config/extended/logs/notfound/$wantedAlbumId--$lidarrArtistForeignArtistId--$lidarrAlbumForeignAlbumId" ]; then
log "$processNumber of $wantedListAlbumTotal :: $wantedAlbumListSource :: $lidarrAlbumType :: $wantedAlbumListSource :: $lidarrArtistName :: $lidarrAlbumTitle :: Previously Not Found, skipping..."
@ -1933,7 +1933,7 @@ CheckLidarrBeforeImport () {
return
fi
if [ "$wantedAlbumListSource" == "cutoff" ]; then
if [ "$cutoffNotify" != "true" ]; then
if [ "$cutoffNotify" == "false" ]; then
log "$processNumber of $wantedListAlbumTotal :: $wantedAlbumListSource :: $lidarrArtistName :: $lidarrAlbumTitle :: $lidarrAlbumType :: Already Imported Album (CutOff), skipping..."
alreadyImported=true
cutoffNotiy="true"

Loading…
Cancel
Save