Commit cb21673a authored by fred's avatar fred

use full URL for feed images

parent 72d04edf
......@@ -666,9 +666,9 @@ class RssCustomPodcastsFeed(Rss201rev2Feed):
else:
handler.addQuickElement('title', 'Radio Panik')
if emission and emission.image and emission.image.url:
handler.addQuickElement('url', emission.image.url)
handler.addQuickElement('url', urlparse.urljoin(self.feed['link'], emission.image.url))
else:
handler.addQuickElement('url', '/static/img/logo-panik-500.png')
handler.addQuickElement('url', urlparse.urljoin(self.feed['link'], '/static/img/logo-panik-500.png'))
handler.endElement('image')
def root_attributes(self):
......
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