Преглед на файлове

Conditionally add burn in option for remote source

gnattu преди 9 месеца
родител
ревизия
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
             {