Merge pull request #16998 from Bond-009/revertCodecPreference

Prefer subtitle extension over codec
This commit is contained in:
Bond-009 authored and GitHub committed 2026-06-05 18:27:34 +02:00
commit b639166c0a
1 file changed
+1 -1
@@ -214,7 +214,7 @@ namespace MediaBrowser.MediaEncoding.Subtitles
};
}
var currentFormat = subtitleStream.Codec ?? Path.GetExtension(subtitleStream.Path).TrimStart('.');
var currentFormat = (Path.GetExtension(subtitleStream.Path) ?? subtitleStream.Codec).TrimStart('.');
// Handle PGS subtitles as raw streams for the client to render
if (MediaStream.IsPgsFormat(currentFormat))