Update mpris plugin with cover art

This commit is contained in:
Hydroxycarbamide 2022-09-15 00:25:31 +02:00
parent 8d5ee408cf
commit 0ff84042ab
5 changed files with 145 additions and 27 deletions

View file

@ -35,17 +35,17 @@ get_info() {
# if not "icon", display information and return
if [ "$2" != "icon" ]; then
printf "$title"
artist=$(extract_meta artist)
[ -z "$artist" ] && artist=$(extract_meta albumArtist)
if [ -n "$artist" ]; then
album=$(extract_meta album)
[ -n "$album" ] && echo -n "$album"
[ -n "$album" ] && printf "\nfrom $album"
echo -n "$artist"
printf "\nby $artist"
fi
echo "$title"
return 0
fi