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