song: use get_song_dbus for amarok

This commit is contained in:
Michael Straube 2018-06-08 13:56:45 +02:00
parent daf866039e
commit 26389a8423
1 changed files with 1 additions and 6 deletions

View File

@ -2370,6 +2370,7 @@ get_song() {
"vlc"*) get_song_dbus "vlc" ;;
"gmusicbrowser"*) get_song_dbus "gmusicbrowser" ;;
"pragha"*) get_song_dbus "pragha" ;;
"amarok"*) get_song_dbus "amarok" ;;
"cmus"*)
song="$(cmus-remote -Q | awk 'BEGIN { ORS=" "};
@ -2409,12 +2410,6 @@ get_song() {
END {print a " \n " b " \n "t}')"
;;
"amarok"*)
song="$(qdbus org.kde.amarok /Player GetMetadata |\
awk -F':' '/^artist:/ {a=$2} /^album:/ {b=$2} /^title:/ {t=$2}
END {print a " \n " b " \n " t}')"
;;
"exaile"*)
song="$(dbus-send --print-reply --dest=org.exaile.Exaile /org/exaile/Exaile \
org.exaile.Exaile.Query |