Ah, OPML standards.
I was just about to submit a patch, since it worked just fine with mySubscriptions.opml-style files from NNW, SharpReader, and blo.gs, when I realized I should test it on a Radio-produced one. Oops, the rest of the world uses text=”” for the blog name, and Radio uses title=””. Which means my ugly recognition hack (strstr($opml, 'htmlUrl')
) isn’t enough, and it probably ought to be done in the parser, with actual attributes, along the lines of
if (!$map){
if ($attrs['htmlUrl'] && $attrs['text'] ){
$map = $mysub_map;
} elseif ( $attrs['htmlUrl'] && $attrs['title'] ) {
$map = $mysub_radio_map;
} elseif ( $attrs['url'] ) {
$map = $opml_map;
} // .... ad infinitum
if ( $map ){
// do it
}
Bleah.
Um, corpus? I think one of the aggregator authors did one, maybe Dare? Probably need to search for something like “opml subscriptions #$#&%!!!1!!” – I remember swearing, lots of swearing.