fixed iTunes song output

This commit is contained in:
Andrew Titmuss 2016-05-28 15:24:40 +10:00
parent e62739842a
commit 543da69eb1
No known key found for this signature in database
GPG key ID: B61622210691F797

View file

@ -1489,7 +1489,7 @@ getsong () {
state="$(gpmdp status)" state="$(gpmdp status)"
elif [ -n "$(ps x | awk '!(/awk/ || /Helper/) && /iTunes/')" ]; then elif [ -n "$(ps x | awk '!(/awk/ || /Helper/) && /iTunes/')" ]; then
song="$(osascript -e 'tell application "iTunes" to artist of current track as string & " - " name of current track as string')" song="$(osascript -e 'tell application "iTunes" to artist of current track as string & " - " & name of current track as string')"
state="$(osascript -e 'tell application "iTunes" to player state as string')" state="$(osascript -e 'tell application "iTunes" to player state as string')"
else else