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

[Feature Request]: 需求识别“.chs&jpn”与“cht&jpn”的字幕文件 #1947

Open
cocoalan opened this issue Apr 24, 2024 · 0 comments

Comments

@cocoalan
Copy link

当前程序版本

v1.8.3

运行环境

Docker

功能改进类型

主程序

功能改进

我搜索了一下字幕名称的识别逻辑,在app/modules/filetransfer/__init__.py第172-173行找到:

_zhcn_sub_re = r"([.\[(](((zh[-_])?(cn|ch[si]|sg|sc))|zho?" \
                       r"|chinese|(cn|ch[si]|sg|zho?|eng)[-_&](cn|ch[si]|sg|zho?|eng)" \

按我的愚钝想法,在173行的eng右侧添加jpn(cn|ch[si]|sg|zho?|eng|jpn),是否就能够识别“.chs&jpn”了?
如果可行,那么同样的逻辑也可以添加识别“cht&jpn”了。

参考资料

No response

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

No branches or pull requests

1 participant