Amarok Cover

Plasma 4 Widgets

Source (link to git-repo or to original if based on someone elses unmodified work): Add the source-code for this project on opencode.net

2
Score 68.0%
Description:

A little Plasmoid to display the cover of the song currently played in Amarok.

Install with $ plasmapkg -i 125701-amarok-cover-1.4.1.zip. Have fun ;)
Last changelog:

9 years ago

1.4.1: fixed resize bug, some code improvements

1.4: fixed bug: cover wasn't reset if a song was stopped and then a song with the same cover (e.g. from the same album) was played.

donpedro69

7 years ago

Image is too low quality. Tried to change parameter in line (100):
subprocess.Popen(['convert', '-resize', '300x300', '-quality', '60', self.tmp, self.out_with_dir]).wait()
60 -> 90 with no effect

Using kubuntu 11.10

Report

tnt533

9 years ago

The script fails just as mentioned by the poster above. I have the named depends installed and even installed all the dev versions.

Running on Lucid AMD64 KDE 4.4.5

Report

C

mindfck

9 years ago

Hi!

At the moment you need Imagemagick to convert pictures which are not in .png format. I hope I can remove this dependency soon, but for the moment this is the only way. Everything else should be OK ;)

Report

tnt533

9 years ago

I have the latest version of Imagemagick installed. You're not saying that I have to convert all my album art to .png are you?

Report

C

mindfck

9 years ago

No, the plasmoid converts non-png covers automatically and leaves all your covers alone :).

To solve your problem, you could open a python shell and try to import all these modules, perhaps you find the missing one!

From the plasmoid-file:

####
from PyQt4.QtCore import *
from PyQt4.QtGui import *
from PyKDE4.kdecore import *
from PyKDE4.kdeui import *
from PyKDE4.plasma import Plasma
from PyKDE4 import plasmascript
import dbus
from dbus.mainloop.glib import DBusGMainLoop
import subprocess
import os
from urllib import unquote
import gobject
####

Report

Grindcore

9 years ago

Hi,

you're plasmoid looks really promising but plasma tells me that the initialization of the scripts fails for some reason.

So I guess I'm missing some needed dependencies. Have you any ideas?

Thanks!

Report

C

mindfck

9 years ago

Hi,

I think you need PyQt4, PyKDE4 and of course Python 2.6. Its working well with my KDE4.4.4, so try to find out if you installed these packages ;)

Report

luciform

9 years ago

It's working well except one issue: I've got at least half of my music sorted to folders with "cover.jpg" file lying along. The problem is that many of the covers have size about 600x600. And when Amarok changes to the tracks with large covers, plasmoid displays them EXACTLY as they are, covering my whole desktop (T_T). Resizing plasmoid gives nothing. Could you, please, add some scaling code?

Report

C

mindfck

9 years ago

Hi, thanks for your comment! There already is some code to resize the image, but in the current version theres a bug. I will release a new version in the nearest future, but you can get resizing working if you edit the file "~/.kde4/share/apps/plasma/plasmoids/amarok-cover/contents/code/main.py" with your favourite editor and replace the line

subprocess.Popen(['convert', '-size', '300x300', '-quality', '60', self.tmp, self.out_with_dir]).wait()

with

subprocess.Popen(['convert', '-resize', '300x300', '-quality', '60', self.tmp, self.out_with_dir]).wait()

that's it!

Report

luciform

9 years ago

Thanks, that worked ^^!

Report

Robbi1987

9 years ago

i think you can´t delete comments

Report

Robbi1987

9 years ago

installation fails for me no such file!

used cd to the directory

3,1 kb little file?

Report

C

mindfck

9 years ago

hi,

this site renamed the zipfile to 125701-amarok-cover-1.3.zip. so try it with $ plasmapkg -i 125701-amarok-cover-1.3.zip. filesize is ok ;)

Report

C

mindfck

9 years ago

this is the right one. how can i delete my own comments?

Report

C

mindfck

9 years ago

hi,

this site renamed the zipfile to 125701-amarok-1.3.zip. so try it with $ plasmapkg -i 125701-amarok-1.3.zip. filesize is ok ;)

Report

C

mindfck

9 years ago

hi,

this site renamed the zipfile to 125701-amarok-1.3.zip. so try it with $ plasmapkg -i 125701-amarok-1.3.zip. filesize is ok ;)

Report

9 years ago

1.4.1: fixed resize bug, some code improvements

1.4: fixed bug: cover wasn't reset if a song was stopped and then a song with the same cover (e.g. from the same album) was played.

12345678910
15
product-maker BlackDal Jan 09 2012 9 excellent
product-maker pars1938 Dec 23 2011 9 excellent
product-maker e1nste1n Jul 10 2011 9 excellent
product-maker jeast Mar 05 2011 9 excellent
product-maker wneiva Nov 29 2010 3 bad
product-maker qqqqqqqqq9 Nov 20 2010 9 excellent
product-maker Base: 4 x 5.0 Ratings
luciform
Jun 27 2010
Lole
Jun 03 2010
File (click to download) Version Description Downloads Date Filesize DL OCS-Install MD5SUM
*Needs pling-store or ocs-url to install things
Pling
0 Affiliates
Details
license
version
1.4.1
updated Jun 29 2010
added Jun 03 2010
downloads 24h
0
pageviews 24h 3