We should be parsing out (server, channel) for rss hooks

This commit is contained in:
jesopo 2019-07-01 21:15:06 +01:00
parent 8b431d25e5
commit 08c723f9d0

View file

@ -32,7 +32,7 @@ class Module(ModuleManager.BaseModule):
for url in urls: for url in urls:
if not url in hooks: if not url in hooks:
hooks[url] = [] hooks[url] = []
hooks[url].append(channel) hooks[url].append((server, channel))
for url, channels in hooks.items(): for url, channels in hooks.items():
try: try:
@ -47,7 +47,7 @@ class Module(ModuleManager.BaseModule):
feed_title = feed["feed"]["title"] feed_title = feed["feed"]["title"]
entry_formatted = {} entry_formatted = {}
for channel in channels: for server, channel in channels:
seen_ids = channel.get_setting("rss-seen-ids-%s" % url, []) seen_ids = channel.get_setting("rss-seen-ids-%s" % url, [])
new_ids = [] new_ids = []
valid = 0 valid = 0