fix: don't extract external sub (#11373)

This commit is contained in:
gnattu 2024-04-18 00:44:04 +08:00 committed by GitHub
parent 5e34f6cd6c
commit 658a454d81
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -463,7 +463,7 @@ namespace MediaBrowser.MediaEncoding.Subtitles
try
{
var subtitleStreams = mediaSource.MediaStreams
.Where(stream => stream.IsTextSubtitleStream && stream.SupportsExternalStream);
.Where(stream => stream is { IsTextSubtitleStream: true, SupportsExternalStream: true, IsExternal: false });
foreach (var subtitleStream in subtitleStreams)
{