feat: discogs description and bugfixes

This commit is contained in:
2025-07-23 12:11:24 +02:00
parent dcba30bf94
commit b7f45c613c
4 changed files with 31 additions and 8 deletions

View File

@@ -1,6 +1,9 @@
# Print preview of artist
# @input $1: MusicBrainz Artist ID
__preview_artist() {
desc=$(mb_artist_enwikipedia "$1" | $JQ -r ".extract")
desc=$(mb_artist_enwikipedia "$1" | $JQ -r '.extract')
if [ ! "$desc" ]; then
desc=$(mb_artist_discogs "$1" | $JQ -r '.profile' | sed 's/\[a=\([^]]*\)\]/\1/g')
fi
echo "$desc" | fold -s -w "$FZF_PREVIEW_COLUMNS" | $CAT
}