rg: artist only if credit differs

This commit is contained in:
2025-07-23 23:20:16 +02:00
parent 744dca7c1d
commit 6731d47b49
3 changed files with 8 additions and 4 deletions

View File

@@ -85,6 +85,7 @@ if [ "${1:-}" = "--internal-list-releases-fresh" ]; then
fi
if [ "${1:-}" = "--internal-list-releases" ]; then
name=$(mb_artist "$2" | $JQ -r '.name')
mb_artist_releasegroups "$2" |
$JQ -r '."release-groups"[] | [
.id,
@@ -96,7 +97,9 @@ if [ "${1:-}" = "--internal-list-releases" ]; then
] | join("\t")' |
awk \
-F "\t" \
-v artist="$name" \
-v format_release="$FORMAT_RELEASE" \
-v format_release_w_artist="$FORMAT_RELEASE_W_ARTIST" \
-v format_year="$FORMAT_YEAR" \
-v format_album="$FORMAT_TYPE_ALBUM" \
-v format_single="$FORMAT_TYPE_SINGLE" \