diff --git a/Cargo.toml b/Cargo.toml index b9d3b38..04c4c10 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "toyunda-player-rs" -version = "0.2.0" +version = "1.0.0" license = "MIT/Apache-2.0" authors = ["Cobrand "] build = "build.rs" diff --git a/src/subtitles/sub.rs b/src/subtitles/sub.rs index 007cf6e..5489e91 100644 --- a/src/subtitles/sub.rs +++ b/src/subtitles/sub.rs @@ -185,12 +185,14 @@ impl Subtitles { { for tmp_syllables in sentence.syllables.windows(2) { let (syllable1, syllable2) = (&tmp_syllables[0], &tmp_syllables[1]); + if !syllable1.text.is_empty() { add_syllable(&mut text_elts, syllable1, Some(syllable2), default_syllable_options.as_ref(), current_time, sentence_alpha); + } } match sentence.syllables.last() { Some(last_syllable) => {