Update main.go
This commit is contained in:
parent
337d04b813
commit
c4db4361b3
9
main.go
9
main.go
@ -1227,11 +1227,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…
x
Reference in New Issue
Block a user