On 2 May 2009, at 15:38, Toby A Inkster wrote:

> I've seen this on someone else's data too, so I assume the site is
> double-encoding ampersands somewhere. I'll take a look this afternoon.


My assumption was incorrect. The problem isn't in nixtape (the  
software that runs the site), but in lastscrape which exports data  
entity-encoded.

Take a look at, for example:

        http://alpha.dev.libre.fm/user/fabsh/recent-tracks?count=1200

And check out both your plays of "Rainy Day Woman #12 & 35". The  
older one, imported from last.fm presumably, has the ampersand double- 
encoded while the newer one does not.

I probably don't know enough Python to go and fix the problem in  
lastscrape, and don't hold a last.fm account to check it on, but I  
implore someone who does to do so. The encoded data in the database  
is probably not especially difficult to find and fix either.

-- 
Toby A Inkster
<mailto:[email protected]>
<http://tobyinkster.co.uk>



_______________________________________________
Libre-fm mailing list
[email protected]
http://lists.autonomo.us/mailman/listinfo/libre-fm

Reply via email to