diff options
| author | gnattu <gnattuoc@me.com> | 2024-09-22 01:11:00 +0800 |
|---|---|---|
| committer | gnattu <gnattuoc@me.com> | 2024-09-22 01:11:23 +0800 |
| commit | c3e889cd41e534b15e0930e2e76fcf12238e5f16 (patch) | |
| tree | 13f989b513930101e991ba25fe99e8fb920a41c9 /Jellyfin.Api | |
| parent | d944f415f3cc0e5433d94b11a16684ca3f0131ec (diff) | |
Conditionally add burn in option for remote source
Diffstat (limited to 'Jellyfin.Api')
| -rw-r--r-- | Jellyfin.Api/Helpers/MediaInfoHelper.cs | 5 |
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 { |
