changeset 4432 | b328ca621ba6 |
parent 4431 | c402b273f2e3 |
--- a/mod_pubsub_feeds/feeds.lib.lua Thu Feb 04 16:16:29 2021 -0001 +++ b/mod_pubsub_feeds/feeds.lib.lua Thu Feb 04 20:49:02 2021 +0100 @@ -12,6 +12,10 @@ atom_entry:tag("link", { href = tag:get_text() }):up(); end +function rss2atom.enclosure(atom_entry, tag) + atom_entry:tag("link", { rel = "enclosure", href = tag.attr.url, type = tag.attr.type, length = tag.attr.length }):up(); +end + function rss2atom.author(atom_entry, tag) atom_entry:tag("author") :tag("email"):text(tag:get_text()):up()