Skip to content

Commit fa70b15

Browse files
committed
解决偶发的漏最后一行字幕的BUG
1 parent 04636d4 commit fa70b15

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/N_m3u8DL-RE.Common/Entity/WebVttSub.cs

+1
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ public static WebVttSub Parse(string text, long BaseTimestamp = 0L)
5050
if (!text.Trim().StartsWith("WEBVTT"))
5151
throw new Exception("Bad vtt!");
5252

53+
text += Environment.NewLine;
5354

5455
var webSub = new WebVttSub();
5556
var needPayload = false;

0 commit comments

Comments
 (0)