Skip Menu |
 

This queue is for tickets about the XML-RSS CPAN distribution.

Report information
The Basics
Id: 48426
Status: open
Priority: 0/
Queue: XML-RSS

People
Owner: Nobody in particular
Requestors: dswhite42 [...] yahoo.com
Cc:
AdminCc:

Bug Information
Severity: Wishlist
Broken in: (no value)
Fixed in: (no value)



Subject: Adding subcategory support
Download (untitled) / with headers
text/plain 1.3k
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 &amp; 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)
From: ozcoder [...] gmail.com
Download (untitled) / with headers
text/plain 1.5k
On Tue Aug 04 18:17:35 2009, dswhite42 wrote: Show quoted text
> 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 &amp; 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)
I have gotten subcategories to work. See my pull request https://github.com/shlomif/perl-XML-RSS/pull/4 Gordon


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.