The patch adds the following features to the application: Everything will be done in the local application directory. Under Linux this is '~/.local/share/Last.fm'. - When a new track is started, the file (in the app-dir as said) 'onNewEvent' will be executed with the parameters 'newtrack: "$artist" - "$songname"'. - When a track is over (no skipping or stop), the file 'onNewEvent' will be executed with the parameters 'endtrack: "$artist" - "$songname"'. If the return-code of the script is 0 (the default) then the track will be saved (in this dir) as a MP3 "$artist - $songname.mp3". ID3V1-tags will also be included into the file. If 'onNewEvent' is not available or not executable, the MP3 will not be saved. That means, the application only behaves different if you create an executable file called 'onNewEvent' in the local application directory. Then, if it is just an empty executable file, you will get all songs saved as MP3s (but only the songs you listen to till the end; songs you skip aren't saved). You can also use the script for example to set your message in your instant messanger or you can save a log with all played songs or something like this.
Created attachment 133831 [details, diff] added_saving_and_event_support.patch the patch
Sorry, we cannot do this for legal reasons (same with media-sound/last-exit or whatever other client). You'll have to keep this in your overlay.
ok, I have put all information and a sample onNewEvent here: http://www.az2000.de/projects/lastfm/