From e88f23e41342449085c327931e7388b95ce439d7 Mon Sep 17 00:00:00 2001 From: jesopo Date: Sun, 23 Jun 2019 16:22:45 +0100 Subject: [PATCH] iter through rss entries backwards --- modules/rss.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/rss.py b/modules/rss.py index 5cef8a72..c6b23514 100644 --- a/modules/rss.py +++ b/modules/rss.py @@ -51,13 +51,13 @@ class Module(ModuleManager.BaseModule): for channel in channels: seen_ids = channel.get_setting("rss-seen-ids", []) new_ids = [] - valid = 1 - for entry in feed["entries"]: + valid = 0 + for entry in feed["entries"][::-1]: if entry["id"] in seen_ids: new_ids.append(entry["id"]) continue - if valid == 4: + if valid == 3: continue valid += 1