Commit 737a4b90 authored by fred's avatar fred

include emission title (or panik itself) as itunes:author

parent 281eee30
......@@ -678,9 +678,13 @@ class RssCustomPodcastsFeed(Rss201rev2Feed):
handler.addQuickElement('url', image_url)
handler.endElement('image')
handler.addQuickElement('itunes:image', None, {'href': image_url})
if emission and emission.subtitle:
handler.addQuickElement('itunes:subtitle', emission.subtitle)
if emission:
if emission.subtitle:
handler.addQuickElement('itunes:subtitle', emission.subtitle)
if emission.title:
handler.addQuickElement('itunes:author', emission.title)
else:
handler.addQuickElement('itunes:author', 'Radio Panik')
for category in emission.categories.all():
if category.itunes_category:
handler.addQuickElement('itunes:category', None, {'text': category.itunes_category})
......
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