Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 196330 - patch for media-sound/lastfmplayer-1.3.1.0 which allows saving as mps3s and eventbased handling after new tracks
Summary: patch for media-sound/lastfmplayer-1.3.1.0 which allows saving as mps3s and e...
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-10-18 21:31 UTC by Albert Zeyer
Modified: 2007-10-18 22:00 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
added_saving_and_event_support.patch (added_saving_and_event_support.patch,5.90 KB, patch)
2007-10-18 21:32 UTC, Albert Zeyer
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Albert Zeyer 2007-10-18 21:31:31 UTC
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.
Comment 1 Albert Zeyer 2007-10-18 21:32:22 UTC
Created attachment 133831 [details, diff]
added_saving_and_event_support.patch

the patch
Comment 2 Jakub Moc (RETIRED) gentoo-dev 2007-10-18 21:33:34 UTC
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.
Comment 3 Albert Zeyer 2007-10-18 22:00:37 UTC
ok, I have put all information and a sample onNewEvent here: http://www.az2000.de/projects/lastfm/