Fixed the issue where Emby connect users could not log in #2115

pull/2142/head
Jamie 7 years ago
parent cbaaaa4405
commit e9ef0136e4

@ -77,13 +77,19 @@ namespace Ombi.Api.Emby
request.AddJsonBody(body);
request.AddHeader("Accept", "application/json");
request.AddContentHeader("Content-Type", "application/json");
AddEmbyHeaders(request);
var obj = await Api.Request<EmbyConnectUser>(request);
return obj;
}
private static void AddEmbyHeaders(Request request)
{
request.AddHeader("Accept", "application/json");
request.AddHeader("X-Application", $"Ombi/{AssemblyHelper.GetRuntimeVersion()}");
request.AddContentHeader("Content-Type", "application/json");
}
public async Task<EmbyItemContainer<MovieInformation>> GetCollection(string mediaId, string apiKey, string userId, string baseUrl)
{
var request = new Request($"emby/users/{userId}/items?parentId={mediaId}", baseUrl, HttpMethod.Get);

@ -349,3 +349,6 @@ button.list-group-item:focus {
height: 100%;
position: absolute;
}
table.table > thead > tr > th.active {
background-color: transparent;
}

@ -10,6 +10,10 @@ $danger-colour: #d9534f;
$success-colour: #5cb85c;
$i: !important;
table > thead > tr > th.active {
background-color: transparent;
}
@media (min-width: 768px ) {
.bottom-align-text {
position: absolute;
@ -952,3 +956,4 @@ a > h4:hover {
.searchWidth {
width: 94%;
}

Loading…
Cancel
Save