Dynamic playlists
2012-09-01 19:49:45
view download This script allows creating dynamic playlist based on selected track using echonest API: http://developer.echonest.com/docs/v4/playlist.html#static It can be used by simply selecting some favorite track then running the script through foo_run:wscript foo_echosong.vbs %MUSICBRAINZ_TRACKID% or wscript foo_echosong.vbs "%artist%" "%title%" or interactively by providing additional parameter argument - "interactive", in which case primitive inputbox control will allow more detailed tunning on playlist creation request: Initially I thought to use comserver component, and do this task without making playlist file, but I must relieve my impression of this funny component. Despite uncommon installation, and playback controlling interfaces, it allows moving playlist around, renaming, even creating new ones, but it can't add items to newly created playlist!? Go figure. Then if you are persistent you can write playlist to a file and try to use playlist.load() method - exposed but disfunctional! Let it rot... or prove me wrong So what to do with response data, then make XSPF and manually dig for it through foo_softplaylist component. And that's how it works: playlist echo.xspf is created in script's folder, which then through foo_softplaylist can be loaded by using "menu > library > load xspf playlist...". Alas echonest api allows creating different types of playlists, and I selected what seemed flexible to me. Selected method can also return response with xspf playlist with low quality http preview tracks from some of it's buckets, like 7digital i.e., but I guess anyone can do that in browser already