downloadedAlbumTitleClean="$(echo"$4"| sed -e "s%[^[:alpha:][:digit:]._' ]% %g" -e "s/ */ /g"| sed 's/^[.]*//'| sed 's/[.]*$//g'| sed 's/^ *//g'| sed 's/ *$//g')"
if find /downloads/lidarr-extended/complete -type d -iname "$lidarrArtistNameSanitized-$downloadedAlbumTitleClean ($3)-*-$2"| read;then
if find /downloads/lidarr-extended/complete -type d -iname "$lidarrArtistNameSanitized-$downloadedAlbumTitleClean ($3)-*-$1-$2"| read;then
trackcount=$(find "$1" -type f -regex ".*/.*\.\(flac\|opus\|m4a\|mp3\)"| wc -l)
if[ -f /scripts/library.blb ];then
@ -1949,7 +1954,7 @@ ProcessWithBeets () {
matchedLidarrAlbumArtistCleanName="$(echo"$matchedLidarrAlbumArtistName"| sed -e "s%[^[:alpha:][:digit:]._()' -]% %g" -e "s/ */ /g"| sed 's/^[.]*//'| sed 's/[.]*$//g'| sed 's/^ *//g'| sed 's/ *$//g')"