aboutsummaryrefslogtreecommitdiff
path: root/Jellyfin.Api/Helpers/MediaInfoHelper.cs
diff options
context:
space:
mode:
authorgnattu <gnattuoc@me.com>2024-09-22 01:11:00 +0800
committergnattu <gnattuoc@me.com>2024-09-22 01:11:23 +0800
commitc3e889cd41e534b15e0930e2e76fcf12238e5f16 (patch)
tree13f989b513930101e991ba25fe99e8fb920a41c9 /Jellyfin.Api/Helpers/MediaInfoHelper.cs
parentd944f415f3cc0e5433d94b11a16684ca3f0131ec (diff)
Conditionally add burn in option for remote source
Diffstat (limited to 'Jellyfin.Api/Helpers/MediaInfoHelper.cs')
-rw-r--r--Jellyfin.Api/Helpers/MediaInfoHelper.cs5
1 files changed, 4 insertions, 1 deletions
diff --git a/Jellyfin.Api/Helpers/MediaInfoHelper.cs b/Jellyfin.Api/Helpers/MediaInfoHelper.cs
index 2d9ecd4f0..4adda0b69 100644
--- a/Jellyfin.Api/Helpers/MediaInfoHelper.cs
+++ b/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
{