Merge pull request #4 from meteozond/master

Fixed podcast itunes image
This commit is contained in:
Lars Kiesow 2013-08-15 06:20:51 -07:00
commit 5b6b1fe6fc
2 changed files with 2 additions and 2 deletions

View file

@ -66,7 +66,7 @@ class PodcastExtension(BaseExtension):
if self.__itunes_image: if self.__itunes_image:
image = etree.SubElement(channel, '{%s}image' % ITUNES_NS) 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'): if self.__itunes_explicit in ('yes', 'no', 'clean'):
explicit = etree.SubElement(channel, '{%s}explicit' % ITUNES_NS) explicit = etree.SubElement(channel, '{%s}explicit' % ITUNES_NS)

View file

@ -50,7 +50,7 @@ class PodcastEntryExtension(BaseEntryExtension):
if self.__itunes_image: if self.__itunes_image:
image = etree.SubElement(entry, '{%s}image' % ITUNES_NS) image = etree.SubElement(entry, '{%s}image' % ITUNES_NS)
image.text = self.__itunes_image image.attrib['href'] = self.__itunes_image
if self.__itunes_duration: if self.__itunes_duration:
duration = etree.SubElement(entry, '{%s}duration' % ITUNES_NS) duration = etree.SubElement(entry, '{%s}duration' % ITUNES_NS)