From 18347fdccbeee503b91720741c830a8416b2e448 Mon Sep 17 00:00:00 2001 From: hafeoz Date: Wed, 19 Jul 2023 01:46:06 +0100 Subject: [PATCH] fix multiple language lrc --- src/parser.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/parser.rs b/src/parser.rs index 8acfdd9..102616b 100644 --- a/src/parser.rs +++ b/src/parser.rs @@ -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();