AutoFetchCover_CN
Amarok 1.x Scripts
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.
openDesktop.org :
sanfanling
10 years ago
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
CuteRabbit
10 years ago
Report
CuteRabbit
10 years ago
Report
hsys
10 years ago
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
CuteRabbit
10 years ago
Report
hsys
10 years ago
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
CuteRabbit
10 years ago
For now,I recommend manually set the album cover to avoid overwriting:)
Report
sanfanling
10 years ago
Report