in reply to Re: iTunes lacking on CPAN...
in thread iTunes lacking on CPAN...
It looks like http://last.fm has an XML/RSS feed that I can use (along with some HTML they provide that links to a .gif image with a list of recently played tracks. Doesn't update too fast though it looks like...) to show the most recent tracks...perhaps i could use XML::Twig for this...
The XML is a LOT simpler for this site:
<recenttracks user="dhoss"> − <track> <artist mbid="777a21a8-0d0f-4cf3-86b4-65bc0eba5649">Staind</artist> <name>Everything Changes</name> <mbid/> − <url> http://www.last.fm/music/Staind/_/Everything+Changes </url> <date uts="1163436933">13 Nov 2006, 16:55</date> </track> − <track> <artist mbid="">The Smashing Pumpkins</artist> <name>1979</name> <mbid/> − <url> http://www.last.fm/music/The+Smashing+Pumpkins/_/1979 </url> <date uts="1163436668">13 Nov 2006, 16:51</date> </track> − <track> <artist mbid="">Yellowcard</artist> <name>Gifts and Curses</name> <mbid/> − <url> http://www.last.fm/music/Yellowcard/_/Gifts+and+Curses </url> <date uts="1163436360">13 Nov 2006, 16:46</date> </track> − <track> <artist mbid="">Rascal Flatts</artist> <name>What Hurts The Most</name> <mbid/> − <url> http://www.last.fm/music/Rascal+Flatts/_/What+Hurts+The+Most </url> <date uts="1163435904">13 Nov 2006, 16:38</date> </track> </recenttracks>
Or, I could even parse the even simpler CSV file:
1163436933,Staind – Everything Changes 1163436668,The Smashing Pumpkins – 1979 1163436360,Yellowcard – Gifts and Curses 1163435904,Rascal Flatts – What Hurts The Most
|
|---|