mirror of
https://github.com/jxxghp/MoviePilot.git
synced 2026-09-06 07:56:52 +08:00
fix #1914
This commit is contained in:
@@ -464,12 +464,13 @@ class TorrentHelper(metaclass=Singleton):
|
|||||||
logger.info(f'{mediainfo.title} 通过别名或译名匹配到资源:{torrent.site_name} - {torrent.title}')
|
logger.info(f'{mediainfo.title} 通过别名或译名匹配到资源:{torrent.site_name} - {torrent.title}')
|
||||||
return True
|
return True
|
||||||
# 标题拆分
|
# 标题拆分
|
||||||
titles = [StringUtils.clear_upper(t) for t in re.split(r'[\s/【】.\[\]\-]+',
|
if torrent_meta.org_string:
|
||||||
torrent_meta.org_string) if t]
|
titles = [StringUtils.clear_upper(t) for t in re.split(r'[\s/【】.\[\]\-]+',
|
||||||
# 在标题中判断是否存在标题、原语种标题
|
torrent_meta.org_string) if t]
|
||||||
if media_titles.intersection(titles):
|
# 在标题中判断是否存在标题、原语种标题
|
||||||
logger.info(f'{mediainfo.title} 通过标题匹配到资源:{torrent.site_name} - {torrent.title}')
|
if media_titles.intersection(titles):
|
||||||
return True
|
logger.info(f'{mediainfo.title} 通过标题匹配到资源:{torrent.site_name} - {torrent.title}')
|
||||||
|
return True
|
||||||
# 在副标题中判断是否存在标题、原语种标题、别名、译名
|
# 在副标题中判断是否存在标题、原语种标题、别名、译名
|
||||||
if torrent.description:
|
if torrent.description:
|
||||||
subtitles = {StringUtils.clear_upper(t) for t in re.split(r'[\s/|]+',
|
subtitles = {StringUtils.clear_upper(t) for t in re.split(r'[\s/|]+',
|
||||||
|
|||||||
Reference in New Issue
Block a user