From e9ef0136e4d577a459d813cfda75e7bb97e08a77 Mon Sep 17 00:00:00 2001 From: Jamie Date: Mon, 2 Apr 2018 20:42:02 +0100 Subject: [PATCH] Fixed the issue where Emby connect users could not log in #2115 --- src/Ombi.Api.Emby/EmbyApi.cs | 10 ++++++++-- src/Ombi/ClientApp/styles/Themes/plex.scss | 5 ++++- src/Ombi/ClientApp/styles/base.scss | 7 ++++++- 3 files changed, 18 insertions(+), 4 deletions(-) diff --git a/src/Ombi.Api.Emby/EmbyApi.cs b/src/Ombi.Api.Emby/EmbyApi.cs index 126b3c700..3af6d0dd5 100644 --- a/src/Ombi.Api.Emby/EmbyApi.cs +++ b/src/Ombi.Api.Emby/EmbyApi.cs @@ -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(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> GetCollection(string mediaId, string apiKey, string userId, string baseUrl) { var request = new Request($"emby/users/{userId}/items?parentId={mediaId}", baseUrl, HttpMethod.Get); diff --git a/src/Ombi/ClientApp/styles/Themes/plex.scss b/src/Ombi/ClientApp/styles/Themes/plex.scss index ef3e31c45..0418ebac7 100644 --- a/src/Ombi/ClientApp/styles/Themes/plex.scss +++ b/src/Ombi/ClientApp/styles/Themes/plex.scss @@ -348,4 +348,7 @@ button.list-group-item:focus { width: 100%; height: 100%; position: absolute; - } \ No newline at end of file + } + table.table > thead > tr > th.active { + background-color: transparent; +} \ No newline at end of file diff --git a/src/Ombi/ClientApp/styles/base.scss b/src/Ombi/ClientApp/styles/base.scss index 313e32e4b..17ee50333 100644 --- a/src/Ombi/ClientApp/styles/base.scss +++ b/src/Ombi/ClientApp/styles/base.scss @@ -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%; -} \ No newline at end of file +} +