瀏覽代碼

Conditionally add burn in option for remote source

gnattu 8 月之前
父節點
當前提交
c3e889cd41
共有 1 個文件被更改,包括 4 次插入1 次删除
  1. 4 1
      Jellyfin.Api/Helpers/MediaInfoHelper.cs

+ 4 - 1
Jellyfin.Api/Helpers/MediaInfoHelper.cs

@@ -293,7 +293,10 @@ public class MediaInfoHelper
                 mediaSource.TranscodingUrl += "&allowAudioStreamCopy=false";
                 mediaSource.TranscodingContainer = streamInfo.Container;
                 mediaSource.TranscodingSubProtocol = streamInfo.SubProtocol;
-                mediaSource.TranscodingUrl += "&alwaysBurnInSubtitleWhenTranscoding=true";
+                if (streamInfo.AlwaysBurnInSubtitleWhenTranscoding)
+                {
+                    mediaSource.TranscodingUrl += "&alwaysBurnInSubtitleWhenTranscoding=true";
+                }
             }
             else
             {