LastFm plugin

Hi there,

Some months ago i've written a little plugin for MOC player in order to properly scrobble my library to my LastFm account.

I think it will be usefull for some guys.

Simply follow few steps described here:

http://kompote.net/moc-lastfm-plugin/

enjoy!

Kompote

I'm thinking about LastFM plugin right now.
The problem is the mocp calls OnSongChange script only when new song is started and passes information about NEW song.
It's good to show nowplaying, but not good for scrobbling, because if you switch to the next song in few seconds after another song has started to play, both will be scrobbled.

Right now I'm trying to add option like OnSongFinished, which will trigger the script before switching to next song or stopping playback, but my skills in C is not right now, so any help is appreciated.

Also, you can check lastfmsubmitd, which implements offline storage and other stuff, but needs some love.

alexey@alexey-MS-7369:~$ cd ~/.moc/moclast
alexey@alexey-MS-7369:~/.moc/moclast$ chmod +x setup.py
alexey@alexey-MS-7369:~/.moc/moclast$ chmod +x moclast.py
alexey@alexey-MS-7369:~/.moc/moclast$ ./setup.py
File "./setup.py", line 71
print("LastFm Account Informations:")
^
SyntaxError: invalid syntax
alexey@alexey-MS-7369:~/.moc/moclast$

I corrected the code, but the plugin does not work.

That link is dead!

I found this script a long while back. It's written in Python and checks to see if the song is still playing, waits until the song is half over, and then uses lastfmsubmitd to scrobble the information: http://pastebin.ca/2137633