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

Cover On The Desktop

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

Cover On The Desktop

Wed Jan 10, 2007 12:49 am
Well...first of all...hi everybody...
i'm here for asking you some questions about the script on the site for viewing the cover of current song displayed on the desktop...
because of i found a bit ugly...the fact that the cover was so small i tryed to add a patch found on the net..
the aim of the patch is to look for the cover non in the cache, but by using a query but it doesnt' reach the right place...
could you help me editing this?
Code: Select all
    def paintImage (self,force):
        artist = popen("dcop amarok player artist").read()[0:-1]
        album = popen("dcop amarok player album").read()[0:-1]
        coverImage = popen("dcop amarok collection query \"select path from images where artist='" + artist + "' and album='" + album + "'\"").read()[0:-1]
        if coverImage == "":
                self.hasCover = False
                self.__hide()
        elif (self.actual != coverImage or force):
                self.hasCover = True
                cover = self.__getCover(coverImage)
                #if self.filter:
                #       cover = self.__filter(cover)
                self.image.setPixmap(self.__box(QPixmap(cover)))
                self.__show()
        self.actual = coverImage


tnx you so much
M@
M@
Registered Member
Posts
7
Karma
0

Re: Cover On The Desktop

Thu Jan 11, 2007 12:59 pm
UPPP! :(
M@
stokedfish
Karma
0

Re: Cover On The Desktop

Fri Jan 12, 2007 1:56 pm
Cover on Desktop should be a default feature of Amarok, it's essential.

I tried all available scripts for it...KoverSS is okay, but still not a very good solution imho...
User avatar
dangle_wtf
Moderator
Posts
1252
Karma
0

Re: Cover On The Desktop

Fri Jan 12, 2007 11:20 pm
Mm... yeah, imagine how good everyone's desktops would look when the only covers available for some albums are the low quality versions ;)

Using a superkaramba or gdesklet plugin is probably a neater solution...


"There are two theories to arguing with women. Neither one works."
.
If men could get pregnant, we'd learn the true meaning of "screaming nancyboy wuss"
M@
Registered Member
Posts
7
Karma
0

Re: Cover On The Desktop

Mon Jan 15, 2007 10:21 pm
but...could someone help me making this query running in that py script?
i wanna obtain the url of the stored image...but cant translate it in the language...
i dont know how to call a subquery...what is the syntax...like how to use " in order to make another search without making the program undestrand that symbol as a final character

dcop amarok collection query "select path from images where artist = ????CURRENTARTIST??? and album = ???CURRENTALBUM???"

any suggests???
tnx in advance
M@
stokedfish
Karma
0

Re: Cover On The Desktop

Tue Jan 16, 2007 10:24 pm
dangle_wtf wrote:Mm... yeah, imagine how good everyone's desktops would look when the only covers available for some albums are the low quality versions ;)

Using a superkaramba or gdesklet plugin is probably a neater solution...


I'm not saying it should be enabled by default.

All I said is that it should be a default *option* of Amarok in the settings.

You could as well just say "Mm... yeah, imagine how good everyone's context browser looks when only a few covers are available locally and the amazon-lookup keeps grabbing the wrong ones"  ;)

But is that a reason to remove Amazon cover support from Amarok's context browser? Naw, of course not.

And a feature to display covers as a screensaver or at least on the desktop somehow should be a default option of Amarok as well!

Last edited by stokedfish on Tue Jan 16, 2007 10:26 pm, edited 1 time in total.
User avatar
dangle_wtf
Moderator
Posts
1252
Karma
0

Re: Cover On The Desktop

Wed Jan 17, 2007 3:11 am
Sorry, but how does making something that can be (and IS) easily done with a script part of Amarok itself help anything?

Your argument is a non-argument.


"There are two theories to arguing with women. Neither one works."
.
If men could get pregnant, we'd learn the true meaning of "screaming nancyboy wuss"
stokedfish
Karma
0

Re: Cover On The Desktop

Wed Jan 17, 2007 8:56 am
First, it's not a non-argument, and second, *you* are the one who started with non-arguments here!  ;)

Obviously, it can't be easily done with scripts...coz none of those scripts is really good.

If it's not that hard and so easily done, then why don't you just add it to the player?!

See, I can understand why you don't implement this:

http://amarok.kde.org/forum/index.php/t ... 184.0.html

(which is a shame)

It must be lots and lots of work and needs lots of coding, so yeah, I see your point...

But instead you should at least add an option to show the cover on the desktop!

settings --> configure Amarok --> appearance --> covers

[] show cover on desktop        size: xxx px
[] use as screensaver

Or something...that would be awesome!  :)

Last edited by stokedfish on Wed Jan 17, 2007 8:59 am, edited 1 time in total.
M@
Registered Member
Posts
7
Karma
0

Re: Cover On The Desktop

Wed Jan 17, 2007 9:02 am
ehi..i think we are going out of topic...my was an ask for scripting help...that has become a bar discussion...inst it?  :redface:

M@
stokedfish
Karma
0

Re: Cover On The Desktop

Wed Jan 17, 2007 3:49 pm
it is, yes.
M@
Registered Member
Posts
7
Karma
0

Re: Cover On The Desktop

Wed Jan 17, 2007 5:46 pm
well...any solution to my problem?? :biggrin:
M@
User avatar
dangle_wtf
Moderator
Posts
1252
Karma
0

Re: Cover On The Desktop

Wed Jan 17, 2007 11:56 pm
M@ wrote:ehi..i think we are going out of topic...my was an ask for scripting help...that has become a bar discussion...inst it?  :redface:

M@


Which was the whole point.

As for the script, have you tried contacting the author via the kde-apps.org page?  Apart from that, the covers in the cache directory are (off the top of my head) an md5sum of "Author - Album Name" if that helps. There may be issues with Various Artist type compilations - one of the devs could probably give more information there.
I believe you might also be able to use dcop commands to retrieve the album cover from the database, but at an initial glance, I haven't been able to find the command.


"There are two theories to arguing with women. Neither one works."
.
If men could get pregnant, we'd learn the true meaning of "screaming nancyboy wuss"
M@
Registered Member
Posts
7
Karma
0

Re: Cover On The Desktop

Thu Jan 18, 2007 12:12 am
yeah...i want to use a dcop cmmand to do it..
but i dont know how to insert a sub search into this script language...
in linux shell I can use the `command` simbols...
something like this
Code: Select all
dcop amarok collection query "select distinct path from images where artist = \"`dcop amarok player artist`\" and album = \"`dcop amarok player album`\""

but i don't know how to insert in in the script
M@

Last edited by M@ on Thu Jan 18, 2007 12:17 am, edited 1 time in total.
M@
Registered Member
Posts
7
Karma
0

Re: Cover On The Desktop

Tue Jan 23, 2007 1:44 pm
UP!
M@
User avatar
dangle_wtf
Moderator
Posts
1252
Karma
0

Re: Cover On The Desktop

Wed Jan 24, 2007 2:15 am
If you're not getting a helpful response to your thread, it's most likely because either noone knows or noone cares. Please don't keep bumping it.

Other places to try for information include IRC (irc.freenode.org:6667 #amarok) or the amarok wiki, http://amarok.kde.org/wiki/


"There are two theories to arguing with women. Neither one works."
.
If men could get pregnant, we'd learn the true meaning of "screaming nancyboy wuss"


Bookmarks



Who is online

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