curl http://barsukmusic.blaireau.net/player/bark067/bark067.xspf | grep "<location" | perl -ple "s/<.*?>//igx" | xargs curl -O
Thanks for the heads-up, G/Catherine.
This entry was posted
on Friday, July 27th, 2007 at 4:03 pm and is filed under DC, music, tech.
You can follow any responses to this entry through the RSS 2.0 feed.
You can leave a response, or trackback from your own site.
Nice. My own recipe for this was longer and not as clean.
I reposted this to the XSPF list at http://lists.musicbrainz.org/mailman/listinfo/playlist
That’s nice of you, Lucas — thanks! I bet that your solution is better, though. As I recall you once sent me an XSLT-based method. Mine relies on the presence of line breaks between each <location> tag, which is usually the case but probably shouldn’t be counted on. This does make a tidier one-liner, though.