mirror of
https://github.com/dylanaraps/neofetch.git
synced 2025-12-24 04:22:32 +00:00
song: also quote xesam:title in get_song_dbus matching
This commit is contained in:
2
neofetch
2
neofetch
@@ -2374,7 +2374,7 @@ get_song() {
|
||||
org.freedesktop.DBus.Properties.Get string:'org.mpris.MediaPlayer2.Player' \
|
||||
string:'Metadata' |\
|
||||
awk -F '"' 'BEGIN {RS=" entry"}; /"xesam:artist"/ {a = $4} /"xesam:album"/ {b = $4}
|
||||
/xesam:title/ {t = $4} END {print a "\n" b "\n" t}'
|
||||
/"xesam:title"/ {t = $4} END {print a "\n" b "\n" t}'
|
||||
)"
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user