<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>张看 &#187; music</title>
	<atom:link href="http://ollir.com/category/uncategorized/music/feed" rel="self" type="application/rss+xml" />
	<link>http://ollir.com</link>
	<description>张昊的博客</description>
	<lastBuildDate>Tue, 22 Mar 2011 02:01:14 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.4</generator>
		<item>
		<title>Show me The Cover!</title>
		<link>http://ollir.com/show-me-the-cover</link>
		<comments>http://ollir.com/show-me-the-cover#comments</comments>
		<pubDate>Wed, 03 Dec 2008 19:08:17 +0000</pubDate>
		<dc:creator>ollir</dc:creator>
				<category><![CDATA[music]]></category>
		<category><![CDATA[embedcover]]></category>

		<guid isPermaLink="false">http://w-a-n.cn/?p=182</guid>
		<description><![CDATA[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 [...]]]></description>
			<content:encoded><![CDATA[<p>Recently, I updated Amarok 1.4 to <a href="http://amarok.kde.org/" target="_blank">Amarok</a> 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.</p>
<p>That&#8217;s not amarok develop team&#8217;s mistake. For this team&#8217;s members are all in U.S, what they can image about music is that every album can be bought directly from <a href="http://www.amazon.com" target="_blank">amazon.com</a>, so every art cover is able to reach from that station. <span style="color: #0000ff;">They have never known one country whose music performers do not sell their products on amazon.com!</span></p>
<p>This country is China like. Most chinese students listen to native-born music, am I right? So, problem is:</p>
<p style="padding-left: 30px;"><strong>Where can they find art covers they need?</strong></p>
<p>The answer is <a href="http://www.douban.com" target="_blank">douban.com</a>, 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?</p>
<p>Of course not! Here is one tiny scenario which helps this situation:</p>
<p style="padding-left: 30px;"><strong>Attachment: <a href="http://www.ollir.com/files/embedcover.tar.gz">embedcover.tar.gz</a></strong></p>
<p><span style="color: #0000ff;">Notes:</span></p>
<p>1. This script relays on two packages: mutagen, python-eyed3, they are both implemented with python!</p>
<p>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.</p>
<p><a href="http://i3.6.cn/cvbnm/aa/7a/1c/e88cbae93fdab395a66614247e743eb2.jpg" rel="lightbox[182]"><img class="alignnone" title="amarok" src="http://i3.6.cn/cvbnm/aa/7a/1c/e88cbae93fdab395a66614247e743eb2.jpg" alt="" width="400" height="302" /></a></p>
<p>Amarok 2.0 | Rediscover your music!</p>
<p><a href="http://i3.6.cn/cvbnm/ce/21/55/c5deb26f2a2c618672ad78203e07488a.jpg" rel="lightbox[182]"><img class="alignnone" title="itunes" src="http://i3.6.cn/cvbnm/ce/21/55/c5deb26f2a2c618672ad78203e07488a.jpg" alt="" width="400" height="244" /></a></p>
<p>iTunes 8.2 | With covers!</p>
<p>Till now, my whole work about album art cover is over. Cheers!</p>
<p>===============================================<br />
<strong>How to run:</strong></p>
<p><em>First: confirm all your mp3 tags are utf8 encoded. </em></p>
<p style="padding-left: 30px;"><em>If not: </em></p>
<p style="padding-left: 60px;"><span style="color: #0000ff;"><em>&gt;&gt;&gt; sudo apt-get install mutagen</em></span></p>
<p style="padding-left: 60px;"><em><span style="color: #0000ff;">&gt;&gt;&gt; find /path/to/music/library -iname &#8220;*.mp3&#8243; -exec mid3iconv -e GBK {} \;</span><br />
</em></p>
<p><em>Second: <span style="color: #0000ff;">&gt;&gt;&gt; tar zxvf embedcover.tar.gz -C /tmp/</span></em></p>
<p><em>Third: <span style="color: #0000ff;">&gt;&gt;&gt; python /tmp/embedcover/travel.py /path/to/music/library</span></em></p>
<p><strong><em>PS:</em></strong></p>
<p><em>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&#8217;t worry, it where start from where it crashed.<br />
</em></p>
]]></content:encoded>
			<wfw:commentRss>http://ollir.com/show-me-the-cover/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

