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

pull/2142/head
Jamie 6 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);

@ -348,4 +348,7 @@ button.list-group-item:focus {
width: 100%;
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;
@ -951,4 +955,5 @@ a > h4:hover {
.searchWidth {
width: 94%;
}
}

Loading…
Cancel
Save