This post is for anyone that wants an easier way to mark the song they are currently listening to as 'loved' on Last.fm, regardless of how the song is being played.
The Last.fm desktop app has a way of doing this (just by right clicking the tray icon and clicking "Love") but there are a lot of services that hook into Last.fm that do not offer as easy a method (eg. ipod's, subsonic, 8tracks, grooveshark, etc.). Also, as we'll see, even right clicking on the tray icon can be improved to be faster.
- Either download the script or the executable from my github here. If you want to download and run the python script yourself, note that you will need to install the pylast library for it to work. Or, if you just want to get it working, download the executable instead (found directly here).
- Install to the folder of your choice.
- Go to Last.fm and sign up for an API account (found here)
- Enter required information
- After completing the form you should get an "API Key" and a "Secret"
- Go to the install folder of the script, and open up "settings.ini"
- Copy and paste the API Key and secret that you received above, and also enter your Last.fm username and password
- Run the script. You should see confirmation on which song was loved.
- Now, if you want to make it even faster, you could make a desktop shortcut or a quick launch shortcut for it, OR if you're like me, you might want to do even better and assign a sytem wide hotkey, so that you can trigger the script immediately. In that case you just need to download the wonderful program Autohotkey and execute the hotkey.ahk file that should be installed to the same directory as the script. By default it is mapped to (windows key + F12) but you can change it easily by editing the AHK file yourself.