This commit is contained in:
2025-07-31 22:06:12 +02:00
parent c5c0e96942
commit d8a01e1079
2 changed files with 4 additions and 3 deletions

View File

@@ -75,10 +75,10 @@ if [ "${1:-}" = "--internal-search" ]; then
true true
else else
api_mb_search_releasegroup "$3" | api_mb_search_releasegroup "$3" |
$JQ -r '."release-groups"[] | [ $JQ -r '."release-groups"[] | [
.id, .id,
."primary-type", ."primary-type",
(."secondary-types"|join(";")), (."secondary-types" // []|join(";")),
."first-release-date", ."first-release-date",
.title, .title,
(."artist-credit" | map(([.name, .joinphrase]|join(""))) | join("")) (."artist-credit" | map(([.name, .joinphrase]|join(""))) | join(""))
@@ -132,7 +132,7 @@ if [ "${1:-}" = "--internal-list-releasegroups" ]; then
$JQ -r '."release-groups"[] | [ $JQ -r '."release-groups"[] | [
.id, .id,
."primary-type", ."primary-type",
(."secondary-types"|join(";")), (."secondary-types" // []|join(";")),
."first-release-date", ."first-release-date",
.title, .title,
(."artist-credit" | map(([.name, .joinphrase]|join(""))) | join("")) (."artist-credit" | map(([.name, .joinphrase]|join(""))) | join(""))

View File

@@ -65,6 +65,7 @@ api_mb_search_releasegroup() {
$CURL \ $CURL \
--get \ --get \
--data fmt=json \ --data fmt=json \
--data inc=artist-credits \
--data-urlencode query="$1" \ --data-urlencode query="$1" \
-A "$APP_NAME/$APP_VERSION ($APP_WEBSITE)" \ -A "$APP_NAME/$APP_VERSION ($APP_WEBSITE)" \
"https://musicbrainz.org/ws/2/release-group" "https://musicbrainz.org/ws/2/release-group"