Skip to content

Commit

Permalink
适应PR等软件导入字幕的出现的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
wxbool committed Nov 30, 2019
1 parent 214ba44 commit f65975a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions app/video.go
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,7 @@ func AliyunAudioResultMakeSubtitleFile(outputDir string , video string , AudioRe
}

defer file.Close() //defer
index := 1
index := 0
for _ , data := range result {
linestr := MakeSubtitleText(index , data.BeginTime , data.EndTime , data.Text)
file.WriteString(linestr)
Expand All @@ -309,6 +309,5 @@ func MakeSubtitleText(index int , startTime int64 , endTime int64 , text string)
content.WriteString(text)
content.WriteString("\n")
content.WriteString("\n")
content.WriteString("\n")
return content.String()
}
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import (
)

//应用版本号
const APP_VERSION = "0.1.2"
const APP_VERSION = "0.1.2.1"

var AppRootDir string
var mw *MyMainWindow
Expand Down

0 comments on commit f65975a

Please sign in to comment.