mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-07-09 03:04:24 -04:00
Merge pull request #9669 from sleepycatcoding/master
Fix subtitle encoder if webvtt is requested
This commit is contained in:
commit
710f5916f0
@ -167,6 +167,7 @@
|
|||||||
- [ipitio](https://github.com/ipitio)
|
- [ipitio](https://github.com/ipitio)
|
||||||
- [TheTyrius](https://github.com/TheTyrius)
|
- [TheTyrius](https://github.com/TheTyrius)
|
||||||
- [tallbl0nde](https://github.com/tallbl0nde)
|
- [tallbl0nde](https://github.com/tallbl0nde)
|
||||||
|
- [sleepycatcoding](https://github.com/sleepycatcoding)
|
||||||
|
|
||||||
# Emby Contributors
|
# Emby Contributors
|
||||||
|
|
||||||
|
@ -293,7 +293,7 @@ namespace MediaBrowser.MediaEncoding.Subtitles
|
|||||||
return true;
|
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();
|
value = new VttWriter();
|
||||||
return true;
|
return true;
|
||||||
|
@ -9,6 +9,7 @@ namespace MediaBrowser.Model.MediaInfo
|
|||||||
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";
|
||||||
|
public const string WEBVTT = "webvtt";
|
||||||
public const string TTML = "ttml";
|
public const string TTML = "ttml";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user