From 6fef0dcbae8653469d30d210db5b9d80276d586b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=84min=20Baumeler?= Date: Mon, 25 Aug 2025 12:10:24 +0200 Subject: [PATCH] improved local loading and decorating --- src/sh/local.sh | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/sh/local.sh b/src/sh/local.sh index 3c44c84..cd6ec5b 100644 --- a/src/sh/local.sh +++ b/src/sh/local.sh @@ -85,7 +85,7 @@ __batch_load_missing() { ;; esac cnt=$((cnt + 1)) - printf "\033[K\r%d/%d (%s)" "$cnt" "$lines" "$mbid" + printf "\033[K\r%d/%d (%s: %s)" "$cnt" "$lines" "$mbid" "$($JQ -r ".name // .title")" sleep 1 done <"$tmpf" printf "\n" @@ -105,8 +105,7 @@ load_local() { tmpreleases=$(mktemp) [ -f "$tmpreleases" ] || exit 1 find "$MUSICDIR" -type f -name "$DECORATION_FILENAME" -print0 | - xargs -0 -I {} \ - $JQ -r '.releaseid+"\t"+input_filename' {} | + xargs -0 -P 4 $JQ -r '.releaseid+"\t"+input_filename' | tee "$LOCALDATA_RELEASES" | cut -d "$(printf '\t')" -f 1 >"$tmpreleases" __batch_load_missing "$TYPE_RELEASE" "$tmpreleases"