This forum has been archived. All content is frozen. Please use KDE Discuss instead.

Extra DCOP Functions

Tags: None
(comma "," separated)
ltmon
Registered Member
Posts
7
Karma
0

Extra DCOP Functions

Thu Aug 31, 2006 11:54 pm
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.
User avatar
eean
KDE Developer
Posts
1016
Karma
0
OS

Re: Extra DCOP Functions

Fri Sep 01, 2006 6:56 am
Make a bugzilla bug report instead. Your request is sensible.


Amarok Developer
ltmon
Registered Member
Posts
7
Karma
0

Re: Extra DCOP Functions

Sat Sep 02, 2006 2:23 am
Thanks,

It's bug #133419.
User avatar
MarkusLitz
Registered Member
Posts
2
Karma
0

Re: Extra DCOP Functions

Tue Sep 05, 2006 12:34 pm
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
User avatar
eean
KDE Developer
Posts
1016
Karma
0
OS

Re: Extra DCOP Functions

Sun Sep 10, 2006 9:16 pm
Looking at the coverContextMenu function, it appears that the following should work for you.
Code: Select all
CollectionDB::instance()->setAlbumImage( artist, album, file );

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
User avatar
MarkusLitz
Registered Member
Posts
2
Karma
0

Re: Extra DCOP Functions

Wed Sep 26, 2007 2:00 pm
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".
Hydrogen
Registered Member
Posts
95
Karma
0

Re: Extra DCOP Functions

Wed Oct 03, 2007 8:56 pm
Check out how the last.fm streaming integration does it.


Bookmarks



Who is online

Registered users: abc72656, Bing [Bot], daret, Google [Bot], Sogou [Bot], Yahoo [Bot]