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

文件名解析 #53

Closed
chu-shen opened this issue Feb 8, 2023 · 2 comments
Closed

文件名解析 #53

chu-shen opened this issue Feb 8, 2023 · 2 comments

Comments

@chu-shen
Copy link
Contributor

chu-shen commented Feb 8, 2023

目标

将文件名解析的工作分离出来,向用户提供两种解析器:

  1. bangumi插件自带的解析器,与其他解析器互斥
  2. 其他解析器

优点

  1. 插件自带简单处理逻辑,无需额外操作即可获得较好效果
  2. 兼容其他解析器,优势明显,可以提供更好的解析效果

应用场景

  1. 动画标题识别
  2. 复杂场景下的集数识别
  3. SP识别👉一些 bad case 和一些建议 #33 (comment)

实现

  1. bangumi插件调整解析逻辑,分离自带的解析器
  2. 集成其他解析器

解析器我推荐现成的AnitomySharp,也可以选择原版

AnitomySharp提供以下类别的解析结果👉ElementCategory

使用方法见👉Anitomy.cs

大家觉得怎么样,讨论一下是否可行

@kookxiang
Copy link
Owner

拆出来没问题
代码是希望放在本仓库内还是说做一个动态加载库的逻辑?

@chu-shen
Copy link
Contributor Author

chu-shen commented Feb 9, 2023

拆出来没问题 代码是希望放在本仓库内还是说做一个动态加载库的逻辑?

自带的解析器由bangumi插件维护,我觉得应该没必要单独拆分出来

其他解析器(如:AnitomySharp)由提供方维护,不合并到bangumi插件,动态加载

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

No branches or pull requests

2 participants