song: Switch Exaile to get_song_dbus (#1528)

This commit is contained in:
Michael Straube 2020-08-07 18:16:34 +02:00 committed by GitHub
parent 286ef32f45
commit e33625ba92
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -2767,6 +2767,7 @@ get_song() {
"xnoise"*) get_song_dbus "xnoise" ;;
"tauonmb"*) get_song_dbus "tauon" ;;
"olivia"*) get_song_dbus "olivia" ;;
"exaile"*) get_song_dbus "exaile" ;;
"netease-cloud-music"*) get_song_dbus "netease-cloud-music" ;;
"plasma-browser-integration"*) get_song_dbus "plasma-browser-integration" ;;
"io.elementary.music"*) get_song_dbus "Music" ;;
@ -2811,16 +2812,6 @@ get_song() {
END {print a " \n" b " \n"t}')"
;;
"exaile"*)
# NOTE: Exaile >= 4.0.0 will support mpris2.
song="$(dbus-send --print-reply --dest=org.exaile.Exaile \
/org/exaile/Exaile org.exaile.Exaile.Query |
awk -F ':' '{sub(",[^,]*$", "", $3); t=$3;
sub(",[^,]*$", "", $4); a=$4;
sub(",[^,]*$", "", $5); b=$5}
END {print a " \n" b " \n" t}')"
;;
"muine"*)
song="$(dbus-send --print-reply --dest=org.gnome.Muine /org/gnome/Muine/Player \
org.gnome.Muine.Player.GetCurrentSong |