tGdacs needs to be checked for in the entry. - zs - Zeitungsschau rss to email converter
 (HTM) git clone git://r-36.net/zs
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) LICENSE
       ---
 (DIR) commit c2fbc15813e2860da32eccbc4ceb4ea2ec0c3e42
 (DIR) parent cee50560790a059e7bb561a5e5489ebba6994772
 (HTM) 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(-)
       ---
 (DIR) diff --git a/zeitungsschau/feed.py b/zeitungsschau/feed.py
       t@@ -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"):
       t@@ -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)