Commit 408d3ae5 authored by Michael Straube's avatar Michael Straube

song: Fix Exaile

parent 684d4e88
...@@ -2672,9 +2672,12 @@ get_song() { ...@@ -2672,9 +2672,12 @@ get_song() {
"exaile"*) "exaile"*)
# NOTE: Exaile >= 4.0.0 will support mpris2. # NOTE: Exaile >= 4.0.0 will support mpris2.
song="$(dbus-send --print-reply --dest=org.exaile.Exaile /org/exaile/Exaile \ song="$(dbus-send --print-reply --dest=org.exaile.Exaile \
org.exaile.Exaile.Query | /org/exaile/Exaile org.exaile.Exaile.Query |
awk -F':|,' '{if ($6 && $8 && $4) printf $6 "\n" $8 "\n" $4}')" awk -F ':' '{sub(",[^,]*$", "", $3); t=$3;
sub(",[^,]*$", "", $4); a=$4;
sub(",[^,]*$", "", $5); b=$5}
END {print a "\n" b "\n" t}')"
;; ;;
"muine"*) "muine"*)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment