From df5a5fc3c22cf1a156865a99ce46b8bc9e8c1cd2 Mon Sep 17 00:00:00 2001 From: jxxghp Date: Mon, 7 Aug 2023 08:33:57 +0800 Subject: [PATCH] fix --- app/chain/subscribe.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/app/chain/subscribe.py b/app/chain/subscribe.py index 5232fac5..1c26ba71 100644 --- a/app/chain/subscribe.py +++ b/app/chain/subscribe.py @@ -352,6 +352,11 @@ class SubscribeChain(ChainBase): """ 刷新站点最新资源 """ + # 所有订阅 + subscribes = self.subscribehelper.list('R') + if not subscribes: + # 没有订阅不运行 + return # 读取缓存 torrents_cache: Dict[str, List[Context]] = self.load_cache(self._cache_file) or {}