changed with new gpmdp function

This commit is contained in:
Andrew Titmuss 2016-03-25 13:44:15 +11:00
parent 808821e2cd
commit 9537be0e94
1 changed files with 3 additions and 3 deletions

View File

@ -1228,8 +1228,8 @@ getsong () {
;; ;;
esac esac
elif ([ -n "$(ps aux | awk '!(/awk/ || /Helper/) && /Google Play Music Desktop Player/')" ] && [ -n "$(which gpmdp)" ]); then elif [ -n "$(ps aux | awk '!(/awk/ || /Helper/) && /Google Play Music Desktop Player/')" ] && type -p gpmdp >/dev/null 2>&1; then
song="$(gpmdp artist) - $(gpmdp title)" song="$(gpmdp current)"
state="$(gpmdp status)" state="$(gpmdp status)"
elif [ -n "$(ps aux | awk '!(/awk/ || /Helper/) && /iTunes/')" ]; then elif [ -n "$(ps aux | awk '!(/awk/ || /Helper/) && /iTunes/')" ]; then