From 04d94f3bdd74317e5e1beedd6758765f7bb03554 Mon Sep 17 00:00:00 2001 From: jxxghp Date: Mon, 15 Apr 2024 13:26:25 +0800 Subject: [PATCH] fix torrents match --- app/helper/torrent.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/helper/torrent.py b/app/helper/torrent.py index 03487cec..d0c820b3 100644 --- a/app/helper/torrent.py +++ b/app/helper/torrent.py @@ -466,8 +466,8 @@ class TorrentHelper(metaclass=Singleton): # 标题拆分 titles = [StringUtils.clear_upper(t) for t in re.split(r'[\s/【】.\[\]\-]+', torrent_meta.org_string) if t] - # 在标题中判断是否存在标题、原语种标题、别名、译名 - if media_titles.intersection(titles) or media_names.intersection(titles): + # 在标题中判断是否存在标题、原语种标题 + if media_titles.intersection(titles): logger.info(f'{mediainfo.title} 通过标题匹配到资源:{torrent.site_name} - {torrent.title}') return True # 在副标题中判断是否存在标题、原语种标题、别名、译名