list_releases: only return ids for local parts, no paths
This commit is contained in:
@@ -330,8 +330,9 @@ if [ "${1:-}" = "--internal-list-local-releasegroups" ]; then
|
||||
fi
|
||||
|
||||
if [ "${1:-}" = "--internal-list-local-releases" ]; then
|
||||
while IFS= read -r rid; do
|
||||
mb_release "$rid" | $JQ -r '[
|
||||
list_releases |
|
||||
while IFS= read -r rid; do
|
||||
mb_release "$rid" | $JQ -r '[
|
||||
.id,
|
||||
.status,
|
||||
.date,
|
||||
@@ -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" \
|
||||
|
@@ -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
|
||||
|
Reference in New Issue
Block a user