<?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>Anthony Dahanne's blog &#187; wordpress</title>
	<atom:link href="http://blog.dahanne.net/category/wordpress/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.dahanne.net</link>
	<description>Open Source Software, Java, Ruby, Agility</description>
	<lastBuildDate>Tue, 20 Jul 2010 13:11:30 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>WordPress Last.fm plugin (recent tracks) broken and fixed !</title>
		<link>http://blog.dahanne.net/2007/05/16/wordpress-lastfm-plugin-recent-tracks-broken-and-fixed/</link>
		<comments>http://blog.dahanne.net/2007/05/16/wordpress-lastfm-plugin-recent-tracks-broken-and-fixed/#comments</comments>
		<pubDate>Wed, 16 May 2007 18:03:30 +0000</pubDate>
		<dc:creator>anthony.dahanne</dc:creator>
				<category><![CDATA[internet]]></category>
		<category><![CDATA[open source]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://blog.dahanne.net/2007/05/16/wordpress-lastfm-plugin-recent-tracks-broken-and-fixed/</guid>
		<description><![CDATA[UPDATE !!!
The author of the Last.fm wordpress plugin  [...]]]></description>
			<content:encoded><![CDATA[<p><strong>UPDATE !!!</strong><br />
<a href="http://blog.tijs.org/archives/2005/11/01/lastfm-recent-tracks-wordpress-plugin/">The author of the Last.fm wordpress plugin has updated it to make it work !!!</a></p>
<p>Well, it was&#8230;until I found out what was actually going wrong !<br />
&laquo;&nbsp;last.fm recent tracks&nbsp;&raquo; WordPress plugin by <a href="http://blog.tijs.org/">Tijs Teulings</a>doesn&#8217;t work anymore due to Last.fm new XML syntax.<br />
In the file lastfm.php which comes with the plugin, and which may be located at the /wp-content/plugins directory (relatively to your wordpress installation directory), you have to change, line 92 :<br />
<code>$findme  = '&lt;track&gt;';</code> by<br />
<code>$findme  = '&lt;track';</code><br />
to make it work !<br />
Yeah it&#8217;s as simple as that, the XML output of Last.fm has changed and the tag &lt;track&gt; has now an attribute, and often becomes &lt;track streamable=&nbsp;&raquo;true&nbsp;&raquo;&gt;  (which doesn&#8217;t match <em>&lt;track&gt;</em> but always matches <em>&lt;track</em>).</p>
<p>If you&#8217;re too lazy (or if you don&#8217;t want to open a file editor..) you can download the fixed version of lastfm.php</p>
<p><a href="http://blog.dahanne.net/download/lastfm.phps">Working version of the lastfm.php file from &laquo;&nbsp;last.fm recent tracks&nbsp;&raquo; WordPress plugin compatible with the new Last.fm XML syntax</a></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.dahanne.net/2007/05/16/wordpress-lastfm-plugin-recent-tracks-broken-and-fixed/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
