load Hash List only when needed

This commit is contained in:
2022-12-23 16:38:57 +08:00
parent 3b658b8655
commit 4223de52c6
3 changed files with 17 additions and 5 deletions

View File

@@ -25,6 +25,8 @@ class RSSCheckerThread(Thread):
def __loop(self):
for rss in self._main._db.getAllRSSList():
if self.__needUpdate(rss) or self._main._commandLine.rebuildHashlist:
if self._main._db.getRSSHashList(rss) is False:
continue
try:
p = RSSParser()
p.parse(rss.url, self._main._setting.RSSTimeout)