From 232877b241a91989335ecfbd7017b7b66603d6ab Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=84min=20Baumeler?= Date: Mon, 25 Aug 2025 11:52:48 +0200 Subject: [PATCH] improved --decorate feedback --- src/sh/local.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/sh/local.sh b/src/sh/local.sh index 2943d87..3c44c84 100644 --- a/src/sh/local.sh +++ b/src/sh/local.sh @@ -10,6 +10,10 @@ gettags() { # all relevant MusicBrainz IDs. # @input $1: Path to directory with album decorate() { + if [ -f "$1/$DECORATION_FILENAME" ]; then + info "Directory $1 has already been decorated (skipping)" + return 0 + fi decoration=$($JQ -n '.tracks = {}') tmpf=$(mktemp) (cd "$1" && find . -type f -iname '*.mp3' -o -iname '*.mp4' -o -iname '*.flac' -o -iname '*.m4a') >"$tmpf" @@ -29,6 +33,7 @@ decorate() { break fi else + info "Decorating $1 as release $rid" releaseid="$rid" fi decoration=$(echo "$decoration" | $JQ ".tracks += {\"$tid\": \"$f\"}")