mirror of
https://github.com/NohamR/N_m3u8DL-RE.git
synced 2025-05-24 22:32:00 +00:00
优化空srt(为了混流不报错)
This commit is contained in:
parent
27191240f4
commit
21e3970a50
@ -39,7 +39,15 @@ namespace N_m3u8DL_RE.Util
|
||||
sb.AppendLine();
|
||||
}
|
||||
sb.AppendLine();
|
||||
return sb.ToString();
|
||||
|
||||
var srt = sb.ToString();
|
||||
|
||||
if (string.IsNullOrEmpty(srt.Trim()))
|
||||
{
|
||||
srt = "1\r\n00:00:00,000 --> 00:00:01,000"; //空字幕
|
||||
}
|
||||
|
||||
return srt;
|
||||
}
|
||||
|
||||
public static string WebVtt2Other(WebVttSub vtt, SubtitleFormat toFormat)
|
||||
|
Loading…
x
Reference in New Issue
Block a user