Custom Context Browser Sections Patch

Bradley Pesicka teknomunk at bluebottle.com
Wed Jun 7 15:33:56 UTC 2006


I have created a patch that adds the ability to add custom 
sections(boxes) to the context browser through dcop.  I have been using 
it for a few days now, and it works fairly well.  The only cavets with 
it are that there is no sorting of the sections, and once you add a 
custom section, it cannot be removed.  I intend to address the latter 
soon, but it will take a while on the sorting, as I am not quite sure 
how it should be handled.

I have also attached three script files.  I use amarok.rb to hide all 
the dcop details from the script and is used by the other scripts I have 
included.  For the other scripts to work, this needs to be put in 
~/.kde/share/apps/amarok/  The script tagcloud.rb fetches tag clouds 
from last.fm and displays them in a custom section.  The other, wiki.rb, 
fetches the artist description from last.fm and displays that.

The tag cloud and the custom "boxes" were both requested at 
http://amarok.kde.org/amarokwiki/index.php/Contextbrowser_Ideas, and 
this is my implementation of it.  Feel free to do whatever you want with 
it.  Aslo, a few other of the suggestions listed in the wiki could also 
be implemented as scripts using this, and a few of the context browser 
sections currently in the code could be moved to a script.

A message was sent to the list about music store integration into 
amaroK.  I think that this is an excellent idea.  My only suggestion is 
to allow it to be implemented by scripts if it does not already.  I 
would be able to write an interface to a music site I like.

On an unrelated note, I really enjoy using amaroK.  It is, by far the 
best media player I have ever used.  Keep up the good work.

-- teknomunk
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: customsections.patch
URL: <http://mail.kde.org/pipermail/amarok/attachments/20060607/673df586/attachment.ksh>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: tagcloud.rb
URL: <http://mail.kde.org/pipermail/amarok/attachments/20060607/673df586/attachment-0001.ksh>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: wiki.rb
URL: <http://mail.kde.org/pipermail/amarok/attachments/20060607/673df586/attachment-0002.ksh>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: amarok.rb
URL: <http://mail.kde.org/pipermail/amarok/attachments/20060607/673df586/attachment-0003.ksh>


More information about the Amarok mailing list