Skip to content

Commit

Permalink
fix multiple language lrc
Browse files Browse the repository at this point in the history
  • Loading branch information
hafeoz committed Jul 19, 2023
1 parent deab14d commit 18347fd
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/parser.rs
Original file line number Diff line number Diff line change
Expand Up @@ -165,9 +165,8 @@ impl Lrc {
if last_timestamp.as_ref() > parsed_line.time.as_ref() {
// If the last timestamp is greater than the current timestamp, we have a new "version" and should start a new vector.
versions.push(Vec::new());
} else {
last_timestamp = parsed_line.time;
}
last_timestamp = parsed_line.time;
}
// Unwrap: we're starting with one element in the vector.
let version = versions.last_mut().unwrap();
Expand Down

0 comments on commit 18347fd

Please sign in to comment.