Compare commits

..

No commits in common. '72f5b36f3d028e5c47251af4ee702323a44fc7a9' and '11d34f36016b08501f3ec2717acc7e9a1798d392' have entirely different histories.

  1. 7
      main.go

@ -1856,12 +1856,7 @@ func conventSyllableTTMLToLRC(ttml string) (string, error) {
for _, div := range parsedTTML.FindElement("tt").FindElement("body").FindElements("div") { for _, div := range parsedTTML.FindElement("tt").FindElement("body").FindElements("div") {
for _, item := range div.ChildElements() { for _, item := range div.ChildElements() {
var lrcSyllables []string var lrcSyllables []string
for _, lyrics := range item.Child { for _, lyric := range item.ChildElements() {
if _, ok := lyrics.(*etree.CharData); ok {
lrcSyllables = append(lrcSyllables, " ")
continue
}
lyric := lyrics.(*etree.Element)
if lyric.SelectAttr("begin") == nil { if lyric.SelectAttr("begin") == nil {
continue continue
} }

Loading…
Cancel
Save