]> git.0d.be Git - panikweb-esperanzah.git/commitdiff
add Panik as author for global feed
authorFrédéric Péters <fpeters@0d.be>
Thu, 19 Sep 2019 15:01:26 +0000 (17:01 +0200)
committerFrédéric Péters <fpeters@0d.be>
Mon, 6 Jan 2020 12:51:14 +0000 (13:51 +0100)
panikweb/views.py

index 0f879271c755577f5e70cf6af691278f72c4b1ee..25454711a76f08f9c90113f40a6dc2da2be50c70 100644 (file)
@@ -737,11 +737,11 @@ class RssCustomPodcastsFeed(Rss201rev2Feed):
                 handler.addQuickElement('itunes:subtitle', emission.subtitle)
             if emission.title:
                 handler.addQuickElement('itunes:author', emission.title)
-            else:
-                handler.addQuickElement('itunes:author', 'Radio Esperanzah!')
             for category in emission.categories.all():
                 if category.itunes_category:
                     handler.addQuickElement('itunes:category', None, {'text': category.itunes_category})
+        else:
+            handler.addQuickElement('itunes:author', 'Radio Esperanzah!')
 
     def root_attributes(self):
         attrs = super(RssCustomPodcastsFeed, self).root_attributes()