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

添加自定义字幕后缀 #55

Merged
merged 5 commits into from
Sep 23, 2024
Merged

添加自定义字幕后缀 #55

merged 5 commits into from
Sep 23, 2024

Conversation

misaka0508
Copy link
Contributor

尝试增加了针对#40 提出的issue增加了手动添加自定义字幕后缀的功能
不过有个不太优雅的地方就是保留语言后缀备份原始字幕应该互斥,比如选择了保留语言后缀备份原始字幕应该处于无法修改的状态,不知道AvaloniaUI有没有类似的功能。

截屏2024-09-17 上午11 41 41 截屏2024-09-17 上午11 42 18

misaka0508 and others added 5 commits September 17, 2024 12:11
- Introduced `CustomLangExt` property in Config.cs
- Updated RenameService to handle custom language extensions
- Modified SettingsViewModel to include custom language extension logic
- Enhanced SettingsWindow to allow user input for custom language extensions
- Ensured mutual exclusivity between keeping language extension and custom language extension options
@qwqcode
Copy link
Owner

qwqcode commented Sep 23, 2024

谢谢提交 PR,我改了下代码,实现了 “保留语言后缀” 选项和 “添加字幕后缀” 的互斥,互斥的原因是:保留了语言后缀将从原始字幕文件名里面提取,而不是使用自定义添加的字幕后缀,反之则反。


另外,这个 “保留语言后缀” 似乎不需要和 “备份原始字幕” 互斥?🤔 互斥的原因是什么?

@qwqcode qwqcode merged commit dd0f6c7 into qwqcode:main Sep 23, 2024
3 checks passed
@misaka0508
Copy link
Contributor Author

谢谢提交 PR,我改了下代码,实现了 “保留语言后缀” 选项和 “添加字幕后缀” 的互斥,互斥的原因是:保留了语言后缀将从原始字幕文件名里面提取,而不是使用自定义添加的字幕后缀,反之则反。

另外,这个 “保留语言后缀” 似乎不需要和 “备份原始字幕” 互斥?🤔 互斥的原因是什么?

感谢修改!我才发现自己打错了😂,应该是“保留语言后缀” 选项和 “添加字幕后缀” 的互斥。

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.

[Feature]在字幕文件名后添加后缀 希望可以自定义重命名后字幕的后缀格式
2 participants