Skip to content

Commit

Permalink
Merge pull request #129 from lkiesow/enclosure-length-int
Browse files Browse the repository at this point in the history
Allow integer to be used for enclosure length
  • Loading branch information
lkiesow authored Dec 22, 2023
2 parents bb08f31 + 51d743f commit f6e1f46
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion feedgen/entry.py
Original file line number Diff line number Diff line change
Expand Up @@ -668,7 +668,7 @@ def enclosure(self, url=None, length=None, type=None):
:returns: Data of the enclosure element.
'''
if url is not None:
self.link(href=url, rel='enclosure', type=type, length=length)
self.link(href=url, rel='enclosure', type=type, length=str(length))
return self.__rss_enclosure

def ttl(self, ttl=None):
Expand Down

0 comments on commit f6e1f46

Please sign in to comment.