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

Bug修复: 修复字幕匹配异常 #228

Merged
merged 1 commit into from
Mar 3, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -65,9 +65,9 @@ object SubtitleFinder {
* 判断是否是候选字幕
*/
private fun isCandidateSubtitle(videoName: String, subtitleName: String): Boolean {
//获取点之前的视频名
//获取无后缀的视频名
var compareVideoName = videoName
val pointIndex = videoName.indexOf(".")
val pointIndex = videoName.lastIndexOf(".")
if (pointIndex != -1) {
compareVideoName = videoName.substring(0, pointIndex)
}
Expand Down
Loading