Show me The Cover!

Dec 3rd, 2008 | Filed under music

Recently, I updated Amarok 1.4 to Amarok 2.0. A lot of changes and new features are brought into this revolutionary version of amarok, which suprised me a lot. But, some regrets still exist in this new version, 2.0, for example, album cover auto downloading, this function is not well supported when the album is an Chinese one.

That’s not amarok develop team’s mistake. For this team’s members are all in U.S, what they can image about music is that every album can be bought directly from amazon.com, so every art cover is able to reach from that station. They have never known one country whose music performers do not sell their products on amazon.com!

This country is China like. Most chinese students listen to native-born music, am I right? So, problem is:

Where can they find art covers they need?

The answer is douban.com, a SNS web station which affords album infos like cover, comments, etc. But if your music library is huge(like me, 22G), and a lot of albums, will you download their art covers one by one?

Of course not! Here is one tiny scenario which helps this situation:

Attachment: embedcover.tar.gz

Notes:

1. This script relays on two packages: mutagen, python-eyed3, they are both implemented with python!

2. This script is distributed under GPL-2.0, anyone can modify and redistribute it, you are glad to mail me for any question, littleprince.zh(AT)gmail.

Amarok 2.0 | Rediscover your music!

iTunes 8.2 | With covers!

Till now, my whole work about album art cover is over. Cheers!

===============================================
How to run:

First: confirm all your mp3 tags are utf8 encoded.

If not:

>>> sudo apt-get install mutagen

>>> find /path/to/music/library -iname “*.mp3″ -exec mid3iconv -e GBK {} \;

Second: >>> tar zxvf embedcover.tar.gz -C /tmp/

Third: >>> python /tmp/embedcover/travel.py /path/to/music/library

PS:

If one mp3 tag does not follow the standard id3v2 format, this script may crash. In this case, remove that mp3 file, run this script again. Don’t worry, it where start from where it crashed.

  1. Xinwen
    Jan 7th, 2009 at 08:02
    Reply | Quote | #1

    也不写一下怎么跑啊。。
    而且这个脚本怎么压的啊,里面没东西嘛

  2. 小 王子
    Jan 15th, 2009 at 23:24
    Reply | Quote | #2

    Re Xinwen:
    你说的问题已经修正.