google-code-export / feedparser

Automatically exported from code.google.com/p/feedparser
Other
1 stars 0 forks source link

support iTunes subcategories #358

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.
2.
3.

What is the expected output? What do you see instead?

What version of the product are you using? On what operating system?

Please provide any additional information below.

Original issue reported on code.google.com by tarjei.h...@gmail.com on 23 May 2012 at 1:12

GoogleCodeExporter commented 9 years ago
Sorry, the amount of info in the report is so little because I hit enter by 
misstake. 

The point is that if I parse a podcast with Itunes Categories like this:

import feedparser
p = 
feedparser.parse("http://www.radiospeltorsk.se/category/spelklassiker/feed/podca
st")
p['feed']['tags']

I cannot detect if the tag is a main category or a subcategory of the original 
category. 

Original comment by tarjei.h...@gmail.com on 23 May 2012 at 1:14

GoogleCodeExporter commented 9 years ago
For my future reference:

iTunes supports both categories and subcategories. The hierarchy can only be 
nested one level, so it's not necessary to support an arbitrarily deep category 
hierarchy.

The `itunes:category` element:
https://www.apple.com/itunes/podcasts/specs.html#category

A full list of all supported categories and subcategories:
https://www.apple.com/itunes/podcasts/specs.html#categories

Original comment by kurtmckee on 28 May 2012 at 3:13

GoogleCodeExporter commented 9 years ago

Original comment by kurtmckee on 19 Nov 2012 at 5:25