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

修复不带序号的VTT字幕解析失败并且代码进入死循环的问题 #764

Merged
merged 1 commit into from
Apr 4, 2024

Conversation

FantasyKingdom
Copy link
Contributor

有些VTT字幕是没有序号的,
while decimal.flatMap(Int.init) == nil
这段代码直接导致解析失败并且进入死循环

字幕文件:
How to stay calm when you know you'll be stressed - Daniel Levitin - TED_2_.txt

@kingslay kingslay merged commit ccb962e into kingslay:main Apr 4, 2024
1 check passed
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.

2 participants