This commit is contained in:
jxxghp
2023-09-15 17:28:35 +08:00
parent 4367c53bb0
commit d1368c4f84

View File

@ -196,8 +196,11 @@ class SearchChain(ChainBase):
continue continue
# 在副标题中判断是否存在标题与原语种标题 # 在副标题中判断是否存在标题与原语种标题
if torrent.description: if torrent.description:
if str(mediainfo.title) in torrent.description \ subtitle = torrent.description.split()
or str(mediainfo.original_title) in torrent.description: if (StringUtils.is_chinese(mediainfo.title)
and str(mediainfo.title) in subtitle) \
or (StringUtils.is_chinese(mediainfo.original_title)
and str(mediainfo.original_title) in subtitle):
logger.info(f'{mediainfo.title} 通过副标题匹配到资源:{torrent.site_name} - {torrent.title}' logger.info(f'{mediainfo.title} 通过副标题匹配到资源:{torrent.site_name} - {torrent.title}'
f'副标题:{torrent.description}') f'副标题:{torrent.description}')
_match_torrents.append(torrent) _match_torrents.append(torrent)