diff options
| author | BaronGreenback <jimcartlidge@yahoo.co.uk> | 2020-09-05 19:54:48 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-09-05 19:54:48 +0100 |
| commit | ac7636ea1ea9b028e98b8f59588ba82ebfffda89 (patch) | |
| tree | f1e7f3a81dd02eaf2478c2d74a9ff548f11bc76e | |
| parent | 6d154041b9e456ab97e1066f525e4d9732fb672a (diff) | |
added dlnaheaders
fix for #4059
| -rw-r--r-- | Jellyfin.Api/Helpers/StreamingHelpers.cs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Jellyfin.Api/Helpers/StreamingHelpers.cs b/Jellyfin.Api/Helpers/StreamingHelpers.cs index b12590080..c11799bc8 100644 --- a/Jellyfin.Api/Helpers/StreamingHelpers.cs +++ b/Jellyfin.Api/Helpers/StreamingHelpers.cs @@ -1,4 +1,4 @@ -using System; +using System; using System.Collections.Generic; using System.Globalization; using System.IO; @@ -92,6 +92,7 @@ namespace Jellyfin.Api.Helpers } var enableDlnaHeaders = !string.IsNullOrWhiteSpace(streamingRequest.Params) || + streamingRequest.StreamOptions.ContainsKey("dlnaheaders") || string.Equals(httpRequest.Headers["GetContentFeatures.DLNA.ORG"], "1", StringComparison.OrdinalIgnoreCase); var state = new StreamState(mediaSourceManager, transcodingJobType, transcodingJobHelper) |
