You are not logged in.

#1 2010-06-01 23:03:50

drm00
Member
Registered: 2010-06-01
Posts: 38

new plasmoid: amarok-cover

Hi folks,

i wrote a python-plasmoid to display (only) the cover from the song that amarok ist currently playing on my desktop.

get it at http://kde-look.org/content/show.php/Am … ent=125701

have fun smile

Edit: updated to version 1.4.1

Last edited by drm00 (2010-06-30 01:00:59)

Offline

#2 2010-06-02 02:47:40

GogglesGuy
Member
From: Rocket City
Registered: 2005-03-29
Posts: 610
Website

Re: new plasmoid: amarok-cover

1) Why are you converting the coverart to png?

2) I'm sure it works, but waking up every 500ms to query whether or not a new cover needs to be loaded is rather wastefull (cpu/battery wise). Why not do the obvious and subscribe to the TrackChange signal that's emitted by amarok?

Last edited by GogglesGuy (2010-06-02 02:48:04)

Offline

#3 2010-06-02 15:53:47

drm00
Member
Registered: 2010-06-01
Posts: 38

Re: new plasmoid: amarok-cover

Hi GogglesGuy, thanks for your feedback.

1) I have to convert non-png covers to png, because Plasma.Label.setImage() can only handle *.png.

2) Now, the plasmoid does the obvious wink But i have one last problem: I can install this plasmoid and it works correctly in plasmoidviewer. But when I try to add it to the desktop, it refuses to work sad Any suggestions?

Here's the source (amarok-cover-1.3): http://pastebin.ca/1876038 and new package: http://www.informatik.uni-frankfurt.de/ … 3-beta.zip

Offline

#4 2010-06-02 16:23:12

drm00
Member
Registered: 2010-06-01
Posts: 38

Re: new plasmoid: amarok-cover

Wierd, i restarted and now it works. Have fun wink

Offline

#5 2010-06-30 01:02:01

drm00
Member
Registered: 2010-06-01
Posts: 38

Re: new plasmoid: amarok-cover

new version out big_smile

Offline

Board footer

Powered by FluxBB