AutoFetchCover_CN

Amarok 1.x Scripts

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

0
5 .0
Description:

Everyone knows that Amarok has provided the function of downloading album covers from amazon.com.
But for most albums of Chinese artists,it doesn't work at all.
I often get bored when I search for hundreds of album cover images manually.
So I wrote this script to automatically fetch album cover images of Chinese artists from http://www.douban.com.


Usage:
Just install the script with Amarok Scripts Manager and run it.
Then it will fetch cover image of your current playing track in background if any image can be found.

Dependencies:
Amarok>=1.4
Python>=2.3

Note:

I'a freshener of python,and this is my first open source package. I'm not sure this script will run properly at every situation all the time.

There are some known problems:
*The cover image won't be loaded until the next time the same album plays.
*Album cover image with its artist name containing dots may not be fetched.(Such as "S.H.E" or "F.I.R")
*Album cover image with its album name containing spaces may not be fetched.(Such as "A Perfect Day")
I am busy preparing for CET6 of this summer,and will spare no time going on with this work for several months. I will be very glad if someone would like to solve these problems and improve this script.

However,a lot of Chinese album cover images can be automatically fetched now if you set the mp3 tags with correct artist and album names. It will NOT overwrite an existent image if you have set the cover image manually.
Finally,I have to say,sorry for my poor English.

sanfanling

13 years ago

you don't need any GUI bindings for python, just try in python-console mode, you would understand.

import commands
cmd=commands.getoutput("kdialog --getexistingdirectory '/home' 2>/dev/null")
print cmd

if you use scim just like me," 2>/dev/null" is very important

waiting for your new version

Report

C

CuteRabbit

13 years ago

Thank you for teaching me.But I think there will be no time for me to do this until CET6 at June 26th.The test is very important for me,and I must pass it.

Report

C

CuteRabbit

13 years ago

Sorry,June 23th.

Report

hsys

13 years ago

nice script :)

a bug: it will overwrite my existent image if i do not set the image manually but simply put my own image into music folder(amarok will load it automatically)

Report

C

CuteRabbit

13 years ago

I dont't know how a image is recognized as cover image by amarok yet.Will you provide me some more information?Such as,what's the file name of your image?Is it named "cover.jpg" or other?

Report

hsys

13 years ago

any file name is OK, as long as it is a image file

amarok will search image files in the same folder i place my music file in, and then pick one(i don't know which one it uses exactly) to be the album image automatically.

Report

C

CuteRabbit

13 years ago

I found out that amarok sometimes regard images in the directory as album cover but sometinmes not.Any how,the script can't descide if the image is correct album cover.I think we may need a gui notification to let users make choices.It is indeed a hard work for me and may take a long time cause I don't know how to write a pyqt or pygtk or wxpython script.
For now,I recommend manually set the album cover to avoid overwriting:)

Report

sanfanling

13 years ago

I like it

Report

12345678910
Be the first to comment
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
0.11
updated Dec 04 2007
added May 04 2007
downloads 24h
0
mediaviews 24h 0
pageviews 24h 0
System Tags addon