fix torrents match

This commit is contained in:
jxxghp
2024-04-15 13:26:25 +08:00
parent 7d45b68b4f
commit 04d94f3bdd

View File

@ -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
# 在副标题中判断是否存在标题、原语种标题、别名、译名