From d9b19f853613b46ed604b6f808fb8b177372563c Mon Sep 17 00:00:00 2001 From: meteozond Date: Thu, 15 Aug 2013 12:34:02 +0400 Subject: [PATCH] Fixed podcast itunes image --- feedgen/ext/podcast.py | 2 +- feedgen/ext/podcast_entry.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/feedgen/ext/podcast.py b/feedgen/ext/podcast.py index 223f133..558ae4e 100644 --- a/feedgen/ext/podcast.py +++ b/feedgen/ext/podcast.py @@ -66,7 +66,7 @@ class PodcastExtension(BaseExtension): if self.__itunes_image: image = etree.SubElement(channel, '{%s}image' % ITUNES_NS) - image.text = self.__itunes_image + image.attrib['href'] = self.__itunes_image if self.__itunes_explicit in ('yes', 'no', 'clean'): explicit = etree.SubElement(channel, '{%s}explicit' % ITUNES_NS) diff --git a/feedgen/ext/podcast_entry.py b/feedgen/ext/podcast_entry.py index 4629bfc..adda032 100644 --- a/feedgen/ext/podcast_entry.py +++ b/feedgen/ext/podcast_entry.py @@ -50,7 +50,7 @@ class PodcastEntryExtension(BaseEntryExtension): if self.__itunes_image: image = etree.SubElement(entry, '{%s}image' % ITUNES_NS) - image.text = self.__itunes_image + image.attrib['href'] = self.__itunes_image if self.__itunes_duration: duration = etree.SubElement(entry, '{%s}duration' % ITUNES_NS)