Registered Member
|
Hi All,
What I really wanted to do with a script in Amarok was to add extra functionality to a radio stream that I listen to a lot. For example: - Retrieve the cover image from the stream homepage and set it as the cover image in Amarok - Change the track, artist and album name to the correct metadata (parsed again from the stream homepage) - Add functions (similar to the "love", "ban", "skip" function for lastfm) that match up with links on the stream homepage, where you can indicate how much you like the track they are currently playing etc. There are also other context sensitive functions available to subscribers that can be called with a post to the correct page on their site. Most of this I have worked out how to do using Ruby, but a few extra dcop calls would make this possible to integrate with Amarok. What I was thinking is: setCoverImage(URL) - set the current cover image to a given url setTrackName(String) - self explanatory setArtistName(String) - self explanatory setAlbumName(String) - self explanatory addAction(Name, Icon) - similar to adding a context menu entry, but in the position of the lastfm skip/love/ban actions Is this ever likely to be possible? Or is allowing dynamic modification of metadata for a track a bit too dangerous? Can you think of other ways to allow script writers to provide tight integration of Amarok with arbitrary streams? Thanks, L.
Last edited by ltmon on Fri Sep 01, 2006 2:17 am, edited 1 time in total.
|
KDE Developer
|
Make a bugzilla bug report instead. Your request is sensible.
Amarok Developer
|
Registered Member
|
|
Registered Member
|
Hey,
i have the same problems like you. I have implemented a new DCOP-Function "setCoverImage". Now i have 2 questions. 1. What is the best amarok-function to set a new temporary cover? I could set a new osd-cover, but then the new cover is _only_ in the osd and not visible in the rest of amarok. 2. if done, where should i send the patch in to be looked after? Greetings! Markus |
KDE Developer
|
Looking at the coverContextMenu function, it appears that the following should work for you.
Though I don't know what you mean by temporary cover. Such a concept doesn't exist. Attach patches to that bug# 133419. Thanks!
Amarok Developer
|
Registered Member
|
I want to set a cover for a song that is streamed from a streaming radio station. Getting the song info and catching the cover is no problem, but amarok is missing a DCOP funktion to set a cover just for that song. Thats why i wrote "temporary cover".
|
Registered Member
|
Check out how the last.fm streaming integration does it.
|
Registered users: abc72656, Bing [Bot], daret, Google [Bot], Sogou [Bot], Yahoo [Bot]