bugfix
This commit is contained in:
@@ -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(""))
|
||||||
|
@@ -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"
|
||||||
|
Reference in New Issue
Block a user