Update main_select.go

pull/9/head
itouakirai 5 months ago committed by GitHub
parent 5178131e51
commit cddf3d4388
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 9
      main_select.go

@ -1261,11 +1261,10 @@ func conventTTMLToLRC(ttml string) (string, error) {
if err != nil {
_, err = fmt.Sscanf(lyric.SelectAttr("begin").Value, "%d:%d.%d", &m, &s, &ms)
h = 0
}
if err != nil {
_, err = fmt.Sscanf(lyric.SelectAttr("begin").Value, "%d.%d", &s, &ms)
h, m = 0, 0
}
}
} else {
_, err = fmt.Sscanf(lyric.SelectAttr("begin").Value, "%d.%d", &s, &ms)
h, m = 0, 0
}
if err != nil {
return "", err

Loading…
Cancel
Save