From 56ad2b18a83c9c7bd92920894b64323e7cf13ccb Mon Sep 17 00:00:00 2001 From: sfan5 Date: Mon, 15 Aug 2016 15:12:05 +0200 Subject: [PATCH] [rssnotify] Fix bug introduced by rewrite --- rssnotify.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/rssnotify.py b/rssnotify.py index 3776abb..c28dd37 100755 --- a/rssnotify.py +++ b/rssnotify.py @@ -61,7 +61,9 @@ class RssNotify(): f.write(message) f.write("\n") updated += 1 - self.last_updated[fid] = max((to_unix_time(e.updated) for e in feed.entries), default=0) + new_time = max((to_unix_time(e.updated) for e in feed.entries), default=0) + if new_time > self.last_updated[fid]: + self.last_updated[fid] = new_time if updated > 0: print("[RssNotify]: Found %d update(s) for '%s'" % (updated, feedspec[0])) if self.firstrun: