Merge pull request #1568 from whooo/master

Add DLNA headers if requested by the client
pull/1622/head
Anthony Lavado 5 years ago committed by GitHub
commit 29623d36e8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -690,8 +690,8 @@ namespace MediaBrowser.Api.Playback
request.AudioCodec = EncodingHelper.InferAudioCodec(url);
}
var enableDlnaHeaders = !string.IsNullOrWhiteSpace(request.Params) /*||
string.Equals(Request.Headers.Get("GetContentFeatures.DLNA.ORG"), "1", StringComparison.OrdinalIgnoreCase)*/;
var enableDlnaHeaders = !string.IsNullOrWhiteSpace(request.Params) ||
string.Equals(GetHeader("GetContentFeatures.DLNA.ORG"), "1", StringComparison.OrdinalIgnoreCase);
var state = new StreamState(MediaSourceManager, TranscodingJobType)
{
@ -1016,11 +1016,6 @@ namespace MediaBrowser.Api.Playback
).FirstOrDefault() ?? string.Empty;
}
foreach (var item in responseHeaders)
{
Request.Response.Headers.Add(item.Key, item.Value);
}
}
private void AddTimeSeekResponseHeaders(StreamState state, IDictionary<string, string> responseHeaders)

Loading…
Cancel
Save