From 452f7f982e9a5e0f76b804244afb972731d375ca Mon Sep 17 00:00:00 2001 From: kaliko Date: Sun, 22 Sep 2024 18:27:57 +0200 Subject: [PATCH] feeds: Fixed TypeError (Closes #3) --- sid/feeds.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sid/feeds.py b/sid/feeds.py index 3fe7ce9..de789f5 100644 --- a/sid/feeds.py +++ b/sid/feeds.py @@ -55,11 +55,11 @@ class FeedMonitor(threading.Thread): self.tempo = plugin.TEMPO self.plugin = plugin self.last_check = datetime.datetime.utcnow() - self.seen = dict() + self.seen = {} self.thread_killed = False def _update_cache(self, feed, parsed): - self.seen[feed].update({'ids': {p.id for p in parsed.entries} or {}}) + self.seen[feed].update({'ids': {p.id for p in parsed.entries} or set()}) # Common HTTP caching if parsed.get('etag', False): self.seen[feed].update({'cache': {'etag': parsed.etag}}) -- 2.39.5