From 0c262455e931f8be640df64af0647e8dec29cb68 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..4f19b28 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['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..5bf7a94 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['href'] = self.__itunes_image if self.__itunes_duration: duration = etree.SubElement(entry, '{%s}duration' % ITUNES_NS)