log ":: $processNumber of $wantedListAlbumTotal :: $lidarrArtistNameSanitized :: $lidarrAlbumTitle:: SUCCESS: Matched with beets!"
else
log ": ERROR :: Unable to match using beets to a musicbrainz release, marking download as failed..."
log ":: $processNumber of $wantedListAlbumTotal :: $lidarrArtistNameSanitized :: $lidarrAlbumTitle :: ERROR :: Unable to match using beets to a musicbrainz release, marking download as failed..."
touch "/config/beets-match-error"
fi
fi
@ -410,12 +410,12 @@ ProcessWithBeets () {
fi
if[ -f "/config/beets-match-error"];then
log ":: ERROR :: Beets could not match album, skipping..."
log ":: $processNumber of $wantedListAlbumTotal :: $lidarrArtistNameSanitized :: $lidarrAlbumTitle:: ERROR :: Beets could not match album, skipping..."
rm "/config/beets-match-error"
rm -rf "$1"
return
else
log ":: BEETS MATCH FOUND!"
log ":: $processNumber of $wantedListAlbumTotal :: $lidarrArtistNameSanitized :: $lidarrAlbumTitle ::BEETS MATCH FOUND!"
fi
GetFile=$(find "$1" -type f -iname "*.flac"| head -n1)
log "$position :: $idNumber of $idListCount :: $tidalId :: $matchedLidarrAlbumArtistName ($matchedLidarrAlbumArtistId) found in Lidarr"
log ":: $processNumber of $wantedListAlbumTotal :: $lidarrArtistNameSanitized :: $lidarrAlbumTitle :: $matchedLidarrAlbumArtistName ($matchedLidarrAlbumArtistId) found in Lidarr"
else
log "$position :: $idNumber of $idListCount :: $tidalId :: $matchedLidarrAlbumArtistName ($matchedLidarrAlbumArtistId) NOT found in Lidarr"
log ":: $processNumber of $wantedListAlbumTotal :: $lidarrArtistNameSanitized :: $lidarrAlbumTitle :: $matchedLidarrAlbumArtistName ($matchedLidarrAlbumArtistId) NOT found in Lidarr"
log ":: $processNumber of $wantedListAlbumTotal :: $lidarrArtistNameSanitized :: $lidarrAlbumTitle :: Allowing Lidarr Artist Update, pause for 2 min..."
sleep 2m
fi
matchedLidarrAlbumArtistCleanName="$(echo"$matchedLidarrAlbumArtistName"| sed -e "s%[^[:alpha:][:digit:]._()' -]% %g" -e "s/ */ /g"| sed 's/^[.]*//'| sed 's/[.]*$//g'| sed 's/^ *//g'| sed 's/ *$//g')"