Merge pull request #16380 from LTe/fix-subtitle-extraction-setting

Respect EnableSubtitleExtraction setting in subtitle delivery
This commit is contained in:
Bond-009 2026-04-11 11:37:17 +02:00 committed by GitHub
commit 046023b9dd
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 57 additions and 3 deletions

View file

@ -1331,8 +1331,7 @@ namespace MediaBrowser.MediaEncoding.Encoder
public bool CanExtractSubtitles(string codec)
{
// TODO is there ever a case when a subtitle can't be extracted??
return true;
return _configurationManager.GetEncodingOptions().EnableSubtitleExtraction;
}
private sealed class ProcessWrapper : IDisposable