Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat:匹配未简体化的中文标题,提高动漫识别准确性 #2708

Closed
wants to merge 4 commits into from

Conversation

Akimio521
Copy link
Contributor

主要功能:

提高动漫识别准确度,大部分WEB-DL动漫资源会直接采用香港、台湾的译名,若译名差异较大,无法正确从TMDB查询数据,只能通过繁体查询对应作品

主要改动:

  • MetaBase:新增属性origin_cn_name,用于存放简体化之前的中文标题
  • MetaAnime:将__init__方法中的cn_name修改为origin_cn_name,最后使用cn_name存取zhconv.convert(self.origin_cn_name, "zh-hans")简体化后的标题
  • TheMovieDbModule、DoubanModule:recognize_media方法中最后匹配meta.origin_cn_name

测试动漫

  • [ANi] 學姊是男孩 - 09 [1080P][Baha][WEB-DL][AAC AVC][CHT].mp4
  • [ANi]我家有個魚乾妹 [01][1080P][Baha][WEB-DL].mp4
  • [HKGS]滿腦都是○○的我沒辦法談戀愛[01][1080P][WEB-DL].mkv
  • [ANi]銀河騎士傳[01][1080P][Baha][WEB-DL].mp4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant