mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-01-04 04:55:11 +01:00
Fix subtitle encoder if webvtt is requested
This commit is contained in:
parent
e5dcaa6ed5
commit
62be2a2ea9
2 changed files with 2 additions and 1 deletions
|
|
@ -293,7 +293,7 @@ namespace MediaBrowser.MediaEncoding.Subtitles
|
|||
return true;
|
||||
}
|
||||
|
||||
if (string.Equals(format, SubtitleFormat.VTT, StringComparison.OrdinalIgnoreCase))
|
||||
if (string.Equals(format, SubtitleFormat.VTT, StringComparison.OrdinalIgnoreCase) || string.Equals(format, SubtitleFormat.WEBVTT, StringComparison.OrdinalIgnoreCase))
|
||||
{
|
||||
value = new VttWriter();
|
||||
return true;
|
||||
|
|
|
|||
|
|
@ -9,6 +9,7 @@ namespace MediaBrowser.Model.MediaInfo
|
|||
public const string SSA = "ssa";
|
||||
public const string ASS = "ass";
|
||||
public const string VTT = "vtt";
|
||||
public const string WEBVTT = "webvtt";
|
||||
public const string TTML = "ttml";
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue