|
|
|
@ -50,6 +50,7 @@ namespace Ombi.Schedule.Jobs.Emby
|
|
|
|
|
_embySettings = embySettings;
|
|
|
|
|
_userManagementSettings = ums;
|
|
|
|
|
_userManagementSettings.ClearCache();
|
|
|
|
|
_embySettings.ClearCache();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
private readonly IEmbyApi _api;
|
|
|
|
@ -97,7 +98,7 @@ namespace Ombi.Schedule.Jobs.Emby
|
|
|
|
|
var newUser = new OmbiUser
|
|
|
|
|
{
|
|
|
|
|
UserType = UserType.EmbyUser,
|
|
|
|
|
UserName = embyUser.Name,
|
|
|
|
|
UserName = embyUser.ConnectUserName.HasValue() ? embyUser.ConnectUserName : embyUser.Name,
|
|
|
|
|
ProviderUserId = embyUser.Id,
|
|
|
|
|
Alias = string.Empty,
|
|
|
|
|
EmbyConnectUserId = embyUser.ConnectUserId.HasValue() ? embyUser.ConnectUserId : string.Empty,
|
|
|
|
|