mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-04-24 05:57:20 -04:00
Add subrip to SubtitleFormat
This commit is contained in:
parent
a64e21f57a
commit
24c56328f2
2 changed files with 2 additions and 1 deletions
|
@ -294,7 +294,7 @@ namespace MediaBrowser.MediaEncoding.Subtitles
|
|||
return true;
|
||||
}
|
||||
|
||||
if (string.Equals(format, SubtitleFormat.SRT, StringComparison.OrdinalIgnoreCase) || string.Equals(format, "subrip", StringComparison.OrdinalIgnoreCase))
|
||||
if (string.Equals(format, SubtitleFormat.SRT, StringComparison.OrdinalIgnoreCase) || string.Equals(format,SubtitleFormat.SUBRIP, StringComparison.OrdinalIgnoreCase))
|
||||
{
|
||||
value = new SrtWriter();
|
||||
return true;
|
||||
|
|
|
@ -5,6 +5,7 @@ namespace MediaBrowser.Model.MediaInfo
|
|||
public static class SubtitleFormat
|
||||
{
|
||||
public const string SRT = "srt";
|
||||
public const string SUBRIP = "subrip";
|
||||
public const string SSA = "ssa";
|
||||
public const string ASS = "ass";
|
||||
public const string VTT = "vtt";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue