Subject: | Adding subcategory support |
According to Apple, the appropriate way to make a podcast show up in
their "Technology" category, "Computers" subcategory, one would add this
to an RSS feed:
<itunes:category text="Technology">
<itunes:category text="Computers" />
</itunes:category>
The first part is easy enough:
$rss->add_module(prefix=>'itunes',
uri=>'http://www.itunes.com/dtds/podcast-1.0.dtd');
rss->channel(
itunes => { category => 'Technology' }
...
);
but there doesn't seem to be any way to add the "Computers" subcategorie
under that. I tried fooling around with hashrefs:
rss->channel(
itunes => {
category => {
Technology => 'Computers',
}
}
);
but that plain didn't work.
Compounding the problem is that you can actually specify multiple
categories, each of which can have multiple subcategories:
<itunes:category text="Society & Culture">
<itunes:category text="History" />
</itunes:category>
<itunes:category text="Technology">
<itunes:category text="Gadgets" />
<itunes:category text="Computers" />
<itunes:category text="News" />
</itunes:category>
Is such a thing possible in XML-RSS?
Thanks!
(For Apple/iTunes specs, see
http://www.apple.com/itunes/whatson/podcasts/specs.html and
http://www.jakeludington.com/project_studio/20050704_itunes_custom_rss_tags_category.html)