Fix lidarr_missing_art: correct clearlogo.png filename and Music path map

This commit is contained in:
Gmer4Lfe
2026-06-27 11:56:12 -04:00
parent bafabe5fb3
commit 6feb7ff3fa
+4 -4
View File
@@ -14,7 +14,7 @@
# ============================================================================================== # ==============================================================================================
# #
# Artwork targets per album folder: cover.jpg cdart.png back.jpg # Artwork targets per album folder: cover.jpg cdart.png back.jpg
# Artwork targets per artist folder: folder.jpg fanart.jpg logo.png banner.jpg # Artwork targets per artist folder: folder.jpg fanart.jpg clearlogo.png banner.jpg
# #
# Sources (tried in order, first success wins): # Sources (tried in order, first success wins):
# Album covers: fanart.tv → iTunes fallback # Album covers: fanart.tv → iTunes fallback
@@ -382,7 +382,7 @@ while IFS=$'\t' read -r local_path mbid name; do
if [[ -f "$local_path/folder.jpg" && if [[ -f "$local_path/folder.jpg" &&
-f "$local_path/fanart.jpg" && -f "$local_path/fanart.jpg" &&
-f "$local_path/logo.png" && -f "$local_path/clearlogo.png" &&
-f "$local_path/banner.jpg" ]]; then -f "$local_path/banner.jpg" ]]; then
(( ARTISTS_COMPLETE++ )) (( ARTISTS_COMPLETE++ ))
log " complete — skipping" log " complete — skipping"
@@ -426,9 +426,9 @@ while IFS=$'\t' read -r local_path mbid name; do
fi fi
fi fi
if [[ ! -f "$local_path/logo.png" ]]; then if [[ ! -f "$local_path/clearlogo.png" ]]; then
IMG=$(echo "$JSON" | jq -r '.hdmusiclogo[0].url // empty' 2>/dev/null) IMG=$(echo "$JSON" | jq -r '.hdmusiclogo[0].url // empty' 2>/dev/null)
if download_if_valid "$IMG" "$local_path/logo.png"; then (( _fetches++ )); else (( _fails++ )); fi if download_if_valid "$IMG" "$local_path/clearlogo.png"; then (( _fetches++ )); else (( _fails++ )); fi
fi fi
if [[ ! -f "$local_path/banner.jpg" ]]; then if [[ ! -f "$local_path/banner.jpg" ]]; then