Skip to content

Commit

Permalink
解决偶发的漏最后一行字幕的BUG
Browse files Browse the repository at this point in the history
  • Loading branch information
nilaoda committed Mar 13, 2023
1 parent 04636d4 commit fa70b15
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/N_m3u8DL-RE.Common/Entity/WebVttSub.cs
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ public static WebVttSub Parse(string text, long BaseTimestamp = 0L)
if (!text.Trim().StartsWith("WEBVTT"))
throw new Exception("Bad vtt!");

text += Environment.NewLine;

var webSub = new WebVttSub();
var needPayload = false;
Expand Down

0 comments on commit fa70b15

Please sign in to comment.