Try to fix missing header in Batch convert with WebVTT to ASSA

Fix #8707
This commit is contained in:
Nikolaj Olsson 2024-09-05 21:09:29 +02:00
parent 835a2d08cd
commit 8ef56bb9bc

View File

@ -173,7 +173,10 @@ Format: Layer, Start, End, Style, Name, MarginL, MarginR, MarginV, Effect, Text"
if (isValidAssHeader) if (isValidAssHeader)
{ {
styles = GetStylesFromHeader(subtitle.Header); styles = GetStylesFromHeader(subtitle.Header);
header = subtitle.Header;
} }
sb.AppendFormat(header, title).AppendLine();
} }
else else
{ {