commit cee50560790a059e7bb561a5e5489ebba6994772
parent 7274f9076d9a7d9e65417808677a98277f3fd10e
Author: Christoph Lohmann <20h@r-36.net>
Date: Tue, 28 Apr 2020 20:37:38 +0200
Add strange gdacs ongoing event interpretation of timestamps.
Diffstat:
1 file changed, 2 insertions(+), 0 deletions(-)
diff --git a/zeitungsschau/feed.py b/zeitungsschau/feed.py
@@ -198,6 +198,8 @@ def parseatomfeed(astr):
if hasattr(xml, "updated"):
feed["updated"] = parseiso(xml.updated, now)
+ elif hasattr(xml, "gdacs:fromdate"):
+ feed["updated"] = parseiso(xml.fromdate, now)
elif hasattr(xml, "pubDate"):
feed["updated"] = parseiso(xml.pubDate, now)
elif hasattr(xml, "lastBuildDate"):