From 294b4a6bf923571c2192301e975ea49c66cd9a9f Mon Sep 17 00:00:00 2001 From: jxxghp Date: Wed, 10 Apr 2024 20:05:43 +0800 Subject: [PATCH] fix torrents match --- app/chain/search.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/chain/search.py b/app/chain/search.py index 7b785068..db76e29a 100644 --- a/app/chain/search.py +++ b/app/chain/search.py @@ -224,8 +224,8 @@ class SearchChain(ChainBase): media_info=mediainfo, torrent_info=torrent) for torrent in _match_torrents] - logger.info(f"过滤完成,剩余 {_total} 个资源") - self.progress.update(value=99, text=f'过滤完成,剩余 {_total} 个资源', key=ProgressKey.Search) + logger.info(f"过滤完成,剩余 {len(contexts)} 个资源") + self.progress.update(value=99, text=f'过滤完成,剩余 {len(contexts)} 个资源', key=ProgressKey.Search) # 排序 self.progress.update(value=100, text=f'正在对 {len(contexts)} 个资源进行排序,请稍候...',