From b76072a318409558c388a424e0b92c5122a4f7de Mon Sep 17 00:00:00 2001 From: Gmer4Lfe Date: Sat, 23 May 2026 09:50:58 -0400 Subject: [PATCH] =?UTF-8?q?fix(lidarr=5Fmissing=5Fart):=20log=20=E2=86=92?= =?UTF-8?q?=20info=20for=20section-level=20status=20lines?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Section headers (reachable, counts, summaries) were using log() and invisible without --log. Per-item detail ([n/N] artist/album, fetched file names) stays log. --- Media/lidarr_missing_art.sh | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/Media/lidarr_missing_art.sh b/Media/lidarr_missing_art.sh index 2f6fbde..16c685e 100644 --- a/Media/lidarr_missing_art.sh +++ b/Media/lidarr_missing_art.sh @@ -107,7 +107,7 @@ if [[ -z "$LIDARR_URL" ]]; then exit 0 fi -log " $MY_ID ($LOCAL_SERVER_NAME) — tools OK" +info "$MY_ID ($LOCAL_SERVER_NAME) — tools OK" # ============================================================================================== # ━━━ Status ━━━ @@ -215,7 +215,7 @@ if ! curl_json "$LIDARR_URL/api/v1/system/status?apikey=$LIDARR_API_KEY" | jq -e notify "lidarr_missing_art failed — Lidarr API unreachable on $(hostname)" "Lidarr Missing Art" "warning" exit 1 fi -log " Reachable — $LIDARR_URL" +info "Lidarr reachable — $LIDARR_URL" START=$(date +%s) @@ -235,7 +235,7 @@ echo "━━━ $ICON_SYNC Building Album Directory Map ━━━" declare -A ALBUM_DIR_MAP _artist_list=$(curl_json "$LIDARR_URL/api/v1/artist?apikey=$LIDARR_API_KEY") _map_artist_count=$(echo "$_artist_list" | jq '. | length') -log " Fetching track files for $_map_artist_count artists..." +info "Fetching track files for $_map_artist_count artists..." while IFS= read -r _artist_id; do [[ -z "$_artist_id" ]] && continue @@ -247,7 +247,7 @@ while IFS= read -r _artist_id; do done < <(echo "$_artist_list" | jq -r '.[].id') unset _artist_list _map_artist_count _artist_id _album_id _track_path -log " Mapped ${#ALBUM_DIR_MAP[@]} albums with local tracks" +info "Mapped ${#ALBUM_DIR_MAP[@]} albums with local tracks" # ============================================================================================== # ━━━ Albums ━━━ @@ -264,7 +264,7 @@ if [[ -z "$albums" || "$albums" == "null" ]]; then fi total_albums=$(echo "$albums" | jq '. | length') -log " Processing $total_albums albums..." +info "Processing $total_albums albums..." while IFS=$'\t' read -r mbid artist_name album_name album_id; do raw_dir="${ALBUM_DIR_MAP[$album_id]:-}" @@ -332,7 +332,7 @@ wait ALBUM_FETCHED=$(wc -l < "$LIDARR_TMP/album_fetches" 2>/dev/null || echo 0) ALBUM_FAILED=$(wc -l < "$LIDARR_TMP/album_fails" 2>/dev/null || echo 0) ALBUM_MISSING=$(( ALBUMS_CHECKED - ALBUMS_COMPLETE )) -log " Checked: $ALBUMS_CHECKED | Complete: $ALBUMS_COMPLETE | Needed art: $ALBUM_MISSING | Fetched: $ALBUM_FETCHED | Failed: $ALBUM_FAILED" +info "Checked: $ALBUMS_CHECKED | Complete: $ALBUMS_COMPLETE | Needed art: $ALBUM_MISSING | Fetched: $ALBUM_FETCHED | Failed: $ALBUM_FAILED" # ============================================================================================== # ━━━ Artists ━━━ @@ -349,7 +349,7 @@ if [[ -z "$artists" || "$artists" == "null" ]]; then fi total_artists=$(echo "$artists" | jq '. | length') -log " Processing $total_artists artists..." +info "Processing $total_artists artists..." while IFS=$'\t' read -r local_path mbid name; do local_path=$(translate_path "$local_path") @@ -427,7 +427,7 @@ wait ARTIST_FETCHED=$(wc -l < "$LIDARR_TMP/artist_fetches" 2>/dev/null || echo 0) ARTIST_FAILED=$(wc -l < "$LIDARR_TMP/artist_fails" 2>/dev/null || echo 0) ARTIST_MISSING=$(( ARTISTS_CHECKED - ARTISTS_COMPLETE )) -log " Checked: $ARTISTS_CHECKED | Complete: $ARTISTS_COMPLETE | Needed art: $ARTIST_MISSING | Fetched: $ARTIST_FETCHED | Failed: $ARTIST_FAILED" +info "Checked: $ARTISTS_CHECKED | Complete: $ARTISTS_COMPLETE | Needed art: $ARTIST_MISSING | Fetched: $ARTIST_FETCHED | Failed: $ARTIST_FAILED" END=$(date +%s)