diff options
| author | Bond-009 <bond.009@outlook.com> | 2026-06-05 18:27:34 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-06-05 18:27:34 +0200 |
| commit | b639166c0aa0223f3199aed474d78c40bb46c0ed (patch) | |
| tree | 10c329d96ae05dcece3ad95a32a23bee059cc517 | |
| parent | 53c1c4982a5e984b428607bd674d8a1c08e0e561 (diff) | |
| parent | d69de6ccc4cc1e3f6309364ea65efd92e8f91bf0 (diff) | |
Merge pull request #16998 from Bond-009/revertCodecPreference
Prefer subtitle extension over codec
| -rw-r--r-- | MediaBrowser.MediaEncoding/Subtitles/SubtitleEncoder.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/MediaBrowser.MediaEncoding/Subtitles/SubtitleEncoder.cs b/MediaBrowser.MediaEncoding/Subtitles/SubtitleEncoder.cs index ddb078127b..77aadee704 100644 --- a/MediaBrowser.MediaEncoding/Subtitles/SubtitleEncoder.cs +++ b/MediaBrowser.MediaEncoding/Subtitles/SubtitleEncoder.cs @@ -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)) |
