How to get the spotify url from sharemyplaylists.com
If you like me are running Spotify under Wine on Linux, the Spotify integration with sharemyplaylists.com won't work. The play button on the playlists pages at sharemyplaylists.com are javascript urls that do not tell what is the spotify url for the playlist.
Clicking the play button, Firefox will reply that is does not know how to handle the spotify:// protocol and Chrome will ask a command line application to handle it, but that one will fail silently.
But can we at least see the Spotify URL? Firefox will not reveal what the Spotify URL is, Chrome will, but in a dialog box where copy does not work, and it is pretty tedious to read and type a long seemingly random string. Konqueror will do nothing at all.
But if we could get sharemyplaylists.com to tell what the spotify url is, all will be fine. Stepping through the javascript code one can see a jquery call to playTrack.php, and it turns out we can call this directly from the URL field in the web browser. If you right click the play button you can copy the javascript url.
Take the number from that one and append it to:
http://sharemyplaylists.com/playTrack.php?postId=
In the resulting web page, you can see the spotify url. Copy that one and paste into Spotify's search field and hit return and it will be loaded into Spotify.