list_releases: only return ids for local parts, no paths

This commit is contained in:
2025-08-23 13:06:40 +02:00
parent deaeb23a92
commit be23ea461e
2 changed files with 5 additions and 4 deletions

View File

@@ -330,6 +330,7 @@ if [ "${1:-}" = "--internal-list-local-releasegroups" ]; then
fi
if [ "${1:-}" = "--internal-list-local-releases" ]; then
list_releases |
while IFS= read -r rid; do
mb_release "$rid" | $JQ -r '[
.id,
@@ -343,7 +344,7 @@ if [ "${1:-}" = "--internal-list-local-releases" ]; then
.title,
(."artist-credit" | map(([.name, .joinphrase]|join(""))) | join(""))
] | join("\t")'
done <"$LOCALDATA_RELEASES" |
done |
awk \
-F "\t" \
-v release_official="$FORMAT_STATUS_OFFICIAL" \

View File

@@ -122,7 +122,7 @@ load_local() {
# List all releases
list_releases() {
cat "$LOCALDATA_RELEASES"
cut -d "$(printf '\t')" -f 1 "$LOCALDATA_RELEASES"
}
# List all release groups