Merge pull request #9 from itouakirai/main

fix fix
pull/10/head
zhaarey 7 months ago committed by GitHub
commit f746ed9032
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 7
      main.go
  2. 7
      main_atmos.go
  3. 7
      main_select.go

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

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

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

Loading…
Cancel
Save