mirror of
https://github.com/jellyfin/jellyfin.git
synced 2024-09-06 11:34:57 +02: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;
|
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();
|
value = new SrtWriter();
|
||||||
return true;
|
return true;
|
||||||
|
|
|
@ -5,6 +5,7 @@ namespace MediaBrowser.Model.MediaInfo
|
||||||
public static class SubtitleFormat
|
public static class SubtitleFormat
|
||||||
{
|
{
|
||||||
public const string SRT = "srt";
|
public const string SRT = "srt";
|
||||||
|
public const string SUBRIP = "subrip";
|
||||||
public const string SSA = "ssa";
|
public const string SSA = "ssa";
|
||||||
public const string ASS = "ass";
|
public const string ASS = "ass";
|
||||||
public const string VTT = "vtt";
|
public const string VTT = "vtt";
|
||||||
|
|
Loading…
Reference in a new issue