aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/FeedSinkPlugin.py
diff options
context:
space:
mode:
authorJan Tuomi <jans.tuomi@gmail.com>2023-09-04 13:12:14 +0300
committerJan Tuomi <jans.tuomi@gmail.com>2023-09-10 19:01:00 +0300
commit3b32b14f44476f2b4a450f7226523321e69c0c08 (patch)
treecfb93d411ce7938f03403790abffbd1c4d04ed54 /plugins/FeedSinkPlugin.py
parent70607eeb1fc4d3fb259ad7a9c07cb26afe1493cd (diff)
Improve DigestPlugin
Diffstat (limited to 'plugins/FeedSinkPlugin.py')
-rw-r--r--plugins/FeedSinkPlugin.py8
1 files changed, 5 insertions, 3 deletions
diff --git a/plugins/FeedSinkPlugin.py b/plugins/FeedSinkPlugin.py
index c0fc4c9..02e20e9 100644
--- a/plugins/FeedSinkPlugin.py
+++ b/plugins/FeedSinkPlugin.py
@@ -1,4 +1,3 @@
-import time
from typing import Any
import xml.etree.ElementTree as ET
@@ -50,13 +49,16 @@ class Plugin(PluginInterface):
item_comments.text = item.comments
if item.pub_date is not None:
item_pub_date = ET.SubElement(item_elem, "pubDate")
- item_pub_date.text = time.strftime(
- "%a, %d %b %Y %H:%M:%S +0000", item.pub_date
+ item_pub_date.text = item.pub_date.strftime(
+ "%a, %d %b %Y %H:%M:%S +0000"
)
if item.author is not None:
item_author = ET.SubElement(item_elem, "author")
item_author.text = item.author
+ item_guid = ET.SubElement(item_elem, "guid")
+ item_guid.text = item.guid
+
for enc in item.enclosures:
ET.SubElement(
item_elem,