Commit 281eee30 authored by fred's avatar fred

add itunes:category tag to podcast feeds

parent b503a3fe
......@@ -680,6 +680,10 @@ class RssCustomPodcastsFeed(Rss201rev2Feed):
handler.addQuickElement('itunes:image', None, {'href': image_url})
if emission and emission.subtitle:
handler.addQuickElement('itunes:subtitle', emission.subtitle)
if emission:
for category in emission.categories.all():
if category.itunes_category:
handler.addQuickElement('itunes:category', None, {'text': category.itunes_category})
def root_attributes(self):
attrs = super(RssCustomPodcastsFeed, self).root_attributes()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment