Commit e2c85d94 authored by fred's avatar fred
Browse files

add logo to podcast feed

parent 97f780e0
......@@ -657,6 +657,13 @@ class NewsItemDetailView(DetailView):
newsitem = NewsItemDetailView.as_view()
class RssCustomPodcastsFeed(Rss201rev2Feed):
def add_root_elements(self, handler):
super(RssCustomPodcastsFeed, self).add_root_elements(handler)
handler.startElement('image', {})
handler.addQuickElement('title', 'Radio Panik')
handler.addQuickElement('url', self.feed['link'] + 'static/img/Radio_Panik_Logo_2016-01.png')
def root_attributes(self):
attrs = super(RssCustomPodcastsFeed, self).root_attributes()
attrs['xmlns:dc'] = ''
Supports Markdown
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