Merge pull request #267 from iandrewt/itunes-fix

fixed iTunes song output
This commit is contained in:
Dylan Araps 2016-05-28 15:39:25 +10:00
commit 6fd40fc82d

View file

@ -1489,7 +1489,7 @@ getsong () {
state="$(gpmdp status)"
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')"
else