[Feedback] Amarok Script:How to add an CoverImage to Collection?

Rich rich at hq.vsaa.lv
Tue May 8 17:26:18 UTC 2007


On 2007.05.04. 04:29, 0422039 at fudan.edu.cn wrote:
> CuteRabbit sent a message using the contact form at
> http://amarok.kde.org/en/contact.
> 
> I'm a Chinese college student and a fun of Amarok. I've noted that Amarok
> already provided the function of downloading coverimage from amazon.com,
> but for most Chinese albums,it gets nothing. It's a pity. And I want to
> write an script to automatically fetch coverimage from some Chinese web
> site. I'm not familiar with programming under Linux using python or
> ruby,but I tried to learn some related knowledge,and I have written a short
> script which can successfully fetch coverimage from www.douban.com(a
> Chinese wiki on entertainment). Now the question is if I've got a
> coverimage of a certain album,how can I add it to collection in python
> using dcop or other method? I looked into
> ~/.kde/share/apps/amarok/albumcovers/,the image seems to be named after a
> serial of hexadecimal value. How are these values generated?I read the wiki

as i haven't sen an answer yet, i will try to give at least some hints :)
the filename should be an md5 sum of "artist - album". you should 
compare some test values with ones in amarok already to confirm the 
exact location of additional symbols like dash or spaces.

> page of Script-Writing_HowTo and DCOP_Functions,but I found no detail about
> these. Is these a way to add an coverimage to collection using python
> then?
> Sorry for my poor English.
> Wish your reply.
-- 
  Rich



More information about the Amarok mailing list