解决偶发的漏最后一行字幕的BUG

This commit is contained in:
nilaoda 2023-03-13 10:57:44 +08:00
parent 04636d4a08
commit fa70b15322
1 changed files with 1 additions and 0 deletions

View File

@ -50,6 +50,7 @@ namespace N_m3u8DL_RE.Common.Entity
if (!text.Trim().StartsWith("WEBVTT")) if (!text.Trim().StartsWith("WEBVTT"))
throw new Exception("Bad vtt!"); throw new Exception("Bad vtt!");
text += Environment.NewLine;
var webSub = new WebVttSub(); var webSub = new WebVttSub();
var needPayload = false; var needPayload = false;