Merge pull request #1023 from mstraube/pragha

song: use get_song_dbus for pragha
This commit is contained in:
Dylan Araps
2018-06-08 04:58:22 +10:00
committed by GitHub

View File

@@ -2369,6 +2369,7 @@ get_song() {
"audacious"*) get_song_dbus "audacious" ;;
"vlc"*) get_song_dbus "vlc" ;;
"gmusicbrowser"*) get_song_dbus "gmusicbrowser" ;;
"pragha"*) get_song_dbus "pragha" ;;
"cmus"*)
song="$(cmus-remote -Q | awk 'BEGIN { ORS=" "};
@@ -2414,11 +2415,6 @@ get_song() {
END {print a " \n " b " \n " t}')"
;;
"pragha"*)
song="$(pragha -c | 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 |