From: Frédéric Péters Date: Mon, 9 Sep 2019 19:01:47 +0000 (+0200) Subject: include emission title (or panik itself) as itunes:author X-Git-Tag: v2021~239 X-Git-Url: https://git.0d.be/?p=panikweb.git;a=commitdiff_plain;h=737a4b9024dadbb6b036d313ed3bbe193833701b include emission title (or panik itself) as itunes:author --- diff --git a/panikweb/views.py b/panikweb/views.py index f0490cf..df609b0 100644 --- a/panikweb/views.py +++ b/panikweb/views.py @@ -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})