mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-08-20 05:13:18 -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 bool Enable { get; set; }
|
||||
public List<EmbyServers> Servers { get; set; }
|
||||
public List<EmbyServers> Servers { get; set; } = new List<EmbyServers>();
|
||||
}
|
||||
|
||||
public class EmbyServers : ExternalSettings
|
||||
|
|
|
@ -72,7 +72,7 @@ namespace Ombi.Controllers.External
|
|||
{
|
||||
var vm = new List<UsersViewModel>();
|
||||
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);
|
||||
if (users != null && users.Any())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue