commit ab6251f24a30cfb463c0317871529e66ea56079d
parent 74bbbf2cf552994fee7bd10709f9b955d59ebe81
Author: Christoph Lohmann <20h@r-36.net>
Date: Tue, 21 Mar 2017 21:47:22 +0100
Show the UUID and allow short date formats.
Diffstat:
2 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/zeitungsschau/feed.py b/zeitungsschau/feed.py
@@ -50,6 +50,7 @@ def parse(astr):
isrss = False
isrdf = False
now = datetime.now(pytz.utc)
+ now = now.replace(hour=20, minute=20, second=20, microsecond=20)
if hasattr(xml, "channel"):
if hasattr(xml, "item"):
diff --git a/zeitungsschau/feedemail.py b/zeitungsschau/feedemail.py
@@ -95,6 +95,8 @@ def send(feed, to, smtphost="localhost", smtpport=None, ssl="False",\
msg["X-RSS-Feed"] = feed["link"]
if "id" in article:
msg["X-RSS-ID"] = article["id"]
+ if "uuid" in article:
+ msg["X-RSS-UUID"] = article["uuid"]
if "tags" in article:
msg["X-RSS-TAGS"] = Header(",".join(article["tags"]),\
"utf-8")