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}})