Fixed an issue where we were retrying the API call when the Plex users login creds were invalid.

#1217

Also removed the Auto update button from the Update page
This commit is contained in:
tidusjar 2017-03-29 21:10:06 +01:00
parent af023fb9d5
commit 41021240c9
4 changed files with 27 additions and 21 deletions

View file

@ -520,14 +520,14 @@ namespace Ombi.UI.Modules.Admin
Message = "Plex is enabled, we cannot enable Plex and Emby"
});
}
// Get the users
var users = EmbyApi.GetUsers(emby.FullUri, emby.ApiKey);
// Find admin
var admin = users.FirstOrDefault(x => x.Policy.IsAdministrator);
emby.AdministratorId = admin?.Id;
}
// Get the users
var users = EmbyApi.GetUsers(emby.FullUri, emby.ApiKey);
// Find admin
var admin = users.FirstOrDefault(x => x.Policy.IsAdministrator);
emby.AdministratorId = admin?.Id;
var result = await EmbySettings.SaveSettingsAsync(emby);
return Response.AsJson(result