[rssnotify] Fix bug introduced by rewrite

master
sfan5 2016-08-15 15:12:05 +02:00
parent 93a6024f2b
commit 56ad2b18a8
1 changed files with 3 additions and 1 deletions

View File

@ -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: