Browse Source

made itunes:order tag optional

can't find any documentation of this tag (docstring suggests it is
something similar to itunes:type) and the previous iTunesItem publish
method always included it (default:<itunes:order>None</itunes:order>).

currently doesn't get added in document if value is None.
pull/20/head
Calvin Houser 1 year ago
parent
commit
07ad0f140b
  1. 4
      rfeed.py

4
rfeed.py

@ -540,7 +540,9 @@ class iTunesItem(Serializable):
if self.is_closed_captioned is not None:
self._write_element("itunes:is_closed_captioned", "yes" if self.is_closed_captioned is True else "no")
self._write_element("itunes:order", str(self.order))
if self.order is not None:
self._write_element("itunes:order", str(self.order))
self._write_element("itunes:subtitle", self.subtitle)
self._write_element("itunes:summary", self.summary)

Loading…
Cancel
Save