mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-07-09 03:04:24 -04:00
normalize subtitle names
This commit is contained in:
parent
4e11e351ee
commit
1031daa9b0
@ -399,7 +399,11 @@ namespace MediaBrowser.MediaEncoding.Probing
|
||||
|
||||
private string NormalizeSubtitleCodec(string codec)
|
||||
{
|
||||
if ((codec ?? string.Empty).IndexOf("PGS", StringComparison.OrdinalIgnoreCase) != -1)
|
||||
if (string.Equals(codec, "dvb_subtitle", StringComparison.OrdinalIgnoreCase))
|
||||
{
|
||||
codec = "dvbsub";
|
||||
}
|
||||
else if ((codec ?? string.Empty).IndexOf("PGS", StringComparison.OrdinalIgnoreCase) != -1)
|
||||
{
|
||||
codec = "PGSSUB";
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user