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

View File

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