Skip to content

Commit

Permalink
Bug修复: 修复字幕匹配异常
Browse files Browse the repository at this point in the history
  • Loading branch information
xyoye committed Mar 3, 2024
1 parent 58abdf4 commit cde8777
Showing 1 changed file with 2 additions and 2 deletions.
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

0 comments on commit cde8777

Please sign in to comment.