zs

Zeitungsschau rss to email converter
git clone git://r-36.net/zs
Log | Files | Refs | LICENSE

commit c2fbc15813e2860da32eccbc4ceb4ea2ec0c3e42
parent cee50560790a059e7bb561a5e5489ebba6994772
Author: Christoph Lohmann <20h@r-36.net>
Date:   Sun,  3 May 2020 15:46:57 +0200

Gdacs needs to be checked for in the entry.

Diffstat:
zeitungsschau/feed.py | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/zeitungsschau/feed.py b/zeitungsschau/feed.py @@ -198,8 +198,6 @@ 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"): @@ -280,6 +278,8 @@ def parseatomfeed(astr): if hasattr(entry, "updated"): article["updated"] = parseiso(entry.updated,\ now) + elif hasattr(entry, "gdacs:temporary"): + article["updated"] = now elif hasattr(entry, "pubDate"): article["updated"] = parseiso(entry.pubDate,\ now)