Apply suggestions from code review

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
jxxghp
2026-04-27 11:35:20 +08:00
parent 0f190057d3
commit 019a077407

View File

@@ -566,7 +566,7 @@ class SearchChain(ChainBase):
) or []
)
search_count += 1
# 有结果则停止
# 未开启多名称搜索时,有结果则停止
if not settings.SEARCH_MULTIPLE_NAME and torrents:
logger.info(f"共搜索到 {len(torrents)} 个资源,停止搜索")
break