andrehaveman / spotify-node-applescript

Control Spotify on Mac OSX with NodeJS and AppleScript
MIT License
316 stars 39 forks source link

Escape quotes when getting track information #8

Closed rmehner closed 11 years ago

rmehner commented 11 years ago

If you have a song title that includes quotes the old version produced a parse error. For example for "spotify:track:4EZz8Byhbjk0tOKFJlCgPB" you'll run into this, because it includes 7" in the album title.

With this commit all the quotes in the values getting properly escaped.

This also extracts the get_track script to a seperate file as it makes maintaining easier.

andrehaveman commented 11 years ago

Thanks for finding this. I don't think I would ever have played that track :)