diff options
| author | Nils Fürniß <contact@nalsai.de> | 2022-03-12 13:49:23 +0100 |
|---|---|---|
| committer | Nils Fürniß <contact@nalsai.de> | 2022-03-22 19:17:48 +0100 |
| commit | eb44f892b8f91451317fa63380f8c62907e24d1e (patch) | |
| tree | 1d29002d4bf97ccbf29bb4f7e7a5eceb602000f4 /Jellyfin.Api/Helpers/TranscodingJobHelper.cs | |
| parent | 90463d5e4f83c6b9972b975cce343e42a181b8ea (diff) | |
Only extract attachments from external .mks file
Diffstat (limited to 'Jellyfin.Api/Helpers/TranscodingJobHelper.cs')
| -rw-r--r-- | Jellyfin.Api/Helpers/TranscodingJobHelper.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Jellyfin.Api/Helpers/TranscodingJobHelper.cs b/Jellyfin.Api/Helpers/TranscodingJobHelper.cs index d8479de2d..da3c1530c 100644 --- a/Jellyfin.Api/Helpers/TranscodingJobHelper.cs +++ b/Jellyfin.Api/Helpers/TranscodingJobHelper.cs @@ -532,7 +532,7 @@ namespace Jellyfin.Api.Helpers var attachmentPath = Path.Combine(_appPaths.CachePath, "attachments", state.MediaSource.Id); await _attachmentExtractor.ExtractAllAttachments(state.MediaPath, state.MediaSource, attachmentPath, cancellationTokenSource.Token).ConfigureAwait(false); - if (state.SubtitleStream.IsExternal) + if (state.SubtitleStream.IsExternal && string.Equals(Path.GetExtension(state.SubtitleStream.Path), ".mks", StringComparison.OrdinalIgnoreCase)) { string subtitlePath = state.SubtitleStream.Path; string subtitlePathArgument = string.Format(CultureInfo.InvariantCulture, "file:\"{0}\"", subtitlePath.Replace("\"", "\\\"", StringComparison.Ordinal)); |
