From 08c723f9d06c25a438004bbe4d69334964106c70 Mon Sep 17 00:00:00 2001 From: jesopo Date: Mon, 1 Jul 2019 21:15:06 +0100 Subject: We should be parsing out (server, channel) for rss hooks --- modules/rss.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'modules/rss.py') diff --git a/modules/rss.py b/modules/rss.py index f8dcf134..c1824056 100644 --- a/modules/rss.py +++ b/modules/rss.py @@ -32,7 +32,7 @@ class Module(ModuleManager.BaseModule): for url in urls: if not url in hooks: hooks[url] = [] - hooks[url].append(channel) + hooks[url].append((server, channel)) for url, channels in hooks.items(): try: @@ -47,7 +47,7 @@ class Module(ModuleManager.BaseModule): feed_title = feed["feed"]["title"] entry_formatted = {} - for channel in channels: + for server, channel in channels: seen_ids = channel.get_setting("rss-seen-ids-%s" % url, []) new_ids = [] valid = 0 -- cgit v1.3.1-10-gc9f91