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

测试发现导入超过30KB的SRT字幕文件后软件就闪退 #16

Closed
ganen1933 opened this issue Nov 16, 2024 · 1 comment
Closed
Labels
bug Something isn't working

Comments

@ganen1933
Copy link

问题描述 | Problem Description

大佬您好,目前发现好像导入超过30kb的SRT字幕文件后软件就立即闪退,导入10kb或20多kb的SRT文件就没事,不知道是不是这个原因。

日志信息(可选)| Logs (Optional)

No response

@ganen1933 ganen1933 added the bug Something isn't working label Nov 16, 2024
WEIFENG2333 pushed a commit that referenced this issue Nov 16, 2024
@WEIFENG2333
Copy link
Owner

经过测试是处理的str文件有点问题,比如它是含有多个换行的,比如:

156
00:10:23,140 --> 00:10:27,100
[Guilherme] É nóis!
[Giovanna] Promete trazer o que
tiver pra animar, pra dar um levante?

默认认为第一行是原字幕,第二行是翻译字幕。超过3行的就出现问题。

程序导出的逻辑就是这样的(第一行是原字幕,第二行是翻译字幕)。如果处理软件导出的字幕就不会有问题。处理其他地方的字幕就可能不匹配。

很难去做适配,当把导入的内容全视作原字幕又可能忽略了翻译。

现在已经修复,只是尽可能做适配,保证不闪退。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants