feat: discogs description and bugfixes
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
Reference in New Issue
Block a user