From: kaliko Date: Sun, 22 Sep 2024 16:27:57 +0000 (+0200) Subject: feeds: Fixed TypeError (Closes #3) X-Git-Url: https://git.kaliko.me/?a=commitdiff_plain;h=452f7f982e9a5e0f76b804244afb972731d375ca;p=sid.git feeds: Fixed TypeError (Closes #3) --- 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}})