mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-08-20 13:23:20 -07:00
!wip fixed an error in the emby servers code
This commit is contained in:
parent
18be4a89f7
commit
9bb29aac33
2 changed files with 2 additions and 2 deletions
|
@ -5,7 +5,7 @@ namespace Ombi.Core.Settings.Models.External
|
||||||
public sealed class EmbySettings : Ombi.Settings.Settings.Models.Settings
|
public sealed class EmbySettings : Ombi.Settings.Settings.Models.Settings
|
||||||
{
|
{
|
||||||
public bool Enable { get; set; }
|
public bool Enable { get; set; }
|
||||||
public List<EmbyServers> Servers { get; set; }
|
public List<EmbyServers> Servers { get; set; } = new List<EmbyServers>();
|
||||||
}
|
}
|
||||||
|
|
||||||
public class EmbyServers : ExternalSettings
|
public class EmbyServers : ExternalSettings
|
||||||
|
|
|
@ -72,7 +72,7 @@ namespace Ombi.Controllers.External
|
||||||
{
|
{
|
||||||
var vm = new List<UsersViewModel>();
|
var vm = new List<UsersViewModel>();
|
||||||
var s = await EmbySettings.GetSettingsAsync();
|
var s = await EmbySettings.GetSettingsAsync();
|
||||||
foreach (var server in s.Servers)
|
foreach (var server in s?.Servers ?? new List<EmbyServers>())
|
||||||
{
|
{
|
||||||
var users = await EmbyApi.GetUsers(server.FullUri, server.ApiKey);
|
var users = await EmbyApi.GetUsers(server.FullUri, server.ApiKey);
|
||||||
if (users != null && users.Any())
|
if (users != null && users.Any())
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue