Fixed podcast itunes image

This commit is contained in:
meteozond 2013-08-15 12:34:02 +04:00
parent 4c5a7d1d94
commit d9b19f8536
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)