diff --git a/src/N_m3u8DL-RE.Common/Entity/WebVttSub.cs b/src/N_m3u8DL-RE.Common/Entity/WebVttSub.cs index 3bff876..6e9c027 100644 --- a/src/N_m3u8DL-RE.Common/Entity/WebVttSub.cs +++ b/src/N_m3u8DL-RE.Common/Entity/WebVttSub.cs @@ -190,6 +190,13 @@ namespace N_m3u8DL_RE.Common.Entity private static TimeSpan ConvertToTS(string str) { + //17.0s + if (str.EndsWith('s')) + { + double sec = Convert.ToDouble(str[..^1]); + return TimeSpan.FromSeconds(sec); + } + str = str.Replace(',', '.'); var ms = Convert.ToInt32(str.Split('.').Last()); var o = str.Split('.').First(); diff --git a/src/N_m3u8DL-RE/CommandLine/CommandInvoker.cs b/src/N_m3u8DL-RE/CommandLine/CommandInvoker.cs index b1a7ac7..ed4b480 100644 --- a/src/N_m3u8DL-RE/CommandLine/CommandInvoker.cs +++ b/src/N_m3u8DL-RE/CommandLine/CommandInvoker.cs @@ -18,7 +18,7 @@ namespace N_m3u8DL_RE.CommandLine { internal partial class CommandInvoker { - public const string VERSION_INFO = "N_m3u8DL-RE (Beta version) 20230406"; + public const string VERSION_INFO = "N_m3u8DL-RE (Beta version) 20230412"; [GeneratedRegex("((best|worst)\\d*|all)")] private static partial Regex ForStrRegex();