fix: improve subtitle parsing and matching

This commit is contained in:
jxxghp
2026-06-10 00:54:58 +08:00
parent 0f468f67c1
commit fa06d5d861
5 changed files with 430 additions and 6 deletions
+2 -2
View File
@@ -1480,11 +1480,11 @@ class SearchChain(ChainBase):
@staticmethod
def __build_subtitle_names(subtitle: SubtitleInfo) -> List[str]:
"""
提取字幕标题下载文件名,作为精确匹配的名称候选。
提取字幕标题下载文件名和描述,作为精确匹配的名称候选。
"""
return list(dict.fromkeys(
name.strip()
for name in (subtitle.title, subtitle.file_name)
for name in (subtitle.title, subtitle.file_name, subtitle.description)
if name and name.strip()
))