]> git.0d.be Git - panikweb.git/blobdiff - panikweb/views.py
add Panik as author for global feed
[panikweb.git] / 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()