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' \
|
org.freedesktop.DBus.Properties.Get string:'org.mpris.MediaPlayer2.Player' \
|
||||||
string:'Metadata' |\
|
string:'Metadata' |\
|
||||||
awk -F '"' 'BEGIN {RS=" entry"}; /"xesam:artist"/ {a = $4} /"xesam:album"/ {b = $4}
|
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