song: fix audacious album

fallback to get_song_dbus() when song_shorthand is on
audtool won't work due to the '-' separator in it's output
This commit is contained in:
Michael Straube 2018-05-09 15:52:51 +02:00
parent b6f0460b35
commit ccced8d997

View file

@ -2417,7 +2417,7 @@ get_song() {
"audacious"*)
song="$(audtool current-song)"
[[ -z "$song" ]] && get_song_dbus "audacious"
[[ -z "$song" || "$song_shorthand" == "on" ]] && get_song_dbus "audacious"
;;
"cmus"*)