From 7d8e7c6402498485df4fb16ec195f3defb8a9b78 Mon Sep 17 00:00:00 2001 From: fireattack Date: Sun, 10 Nov 2024 16:20:24 +0800 Subject: [PATCH] Make sure ms part is 3-digit (#477) --- src/N_m3u8DL-RE.Common/Entity/WebVttSub.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/N_m3u8DL-RE.Common/Entity/WebVttSub.cs b/src/N_m3u8DL-RE.Common/Entity/WebVttSub.cs index 5f49a68..2f1171e 100644 --- a/src/N_m3u8DL-RE.Common/Entity/WebVttSub.cs +++ b/src/N_m3u8DL-RE.Common/Entity/WebVttSub.cs @@ -205,7 +205,7 @@ namespace N_m3u8DL_RE.Common.Entity string[] parts = str.Split('.'); if (parts.Length > 1) { - time += Convert.ToInt32(parts.Last()); + time += Convert.ToInt32(parts.Last().PadRight(3, '0')); str = parts.First(); } var t = str.Split(':').Reverse().ToList();