From the looks of it, this is a one time playlist generator. Does anyone know if it is possible to run this in the background or daemonize it, so that it is called after each track is played?
Idea being the following .
get current trackname, current artistname
fetch X number of similar tracks from last.fm api based on genre/artist/album
append results to playlist