The Free Software Media System - Server Backend & API
Only extract attachments from external .mks file
Nils Fürnißeb44f892b8f9
diff --git a/Jellyfin.Api/Helpers/TranscodingJobHelper.cs b/Jellyfin.Api/Helpers/TranscodingJobHelper.csindex d8479de2dd..da3c1530c5 100644--- a/Jellyfin.Api/Helpers/TranscodingJobHelper.cs+++ b/Jellyfin.Api/Helpers/TranscodingJobHelper.cs@@ -532,7 +532,7 @@ namespace Jellyfin.Api.Helpersvar 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));