ise codec before path on format selection

This commit is contained in:
lostb1t
2025-10-05 18:01:00 +02:00
parent ddc613cd72
commit e5a2acd6dd

View File

@@ -223,7 +223,7 @@ namespace MediaBrowser.MediaEncoding.Subtitles
};
}
var currentFormat = (Path.GetExtension(subtitleStream.Path) ?? subtitleStream.Codec)
var currentFormat = subtitleStream.Codec ?? Path.GetExtension(subtitleStream.Path)
.TrimStart('.');
// Handle PGS subtitles as raw streams for the client to render