|
|
|
@ -127,19 +127,14 @@ namespace Ombi.Schedule.Jobs.Plex
|
|
|
|
|
continue;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (plexUser.HomeUser)
|
|
|
|
|
{
|
|
|
|
|
_log.LogInformation($"User '{plexUser.Title}' is a Plex Home User. Home Users are not supported");
|
|
|
|
|
continue;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Check if this Plex User already exists
|
|
|
|
|
// We are using the Plex USERNAME and Not the TITLE, the Title is for HOME USERS without an account
|
|
|
|
|
var existingPlexUser = allUsers.FirstOrDefault(x => x.ProviderUserId == plexUser.Id);
|
|
|
|
|
if (existingPlexUser == null)
|
|
|
|
|
{
|
|
|
|
|
if (!plexUser.Username.HasValue())
|
|
|
|
|
{
|
|
|
|
|
_log.LogInformation($"Could not create Plex user since the have no username, PlexUserId: {plexUser.Id}");
|
|
|
|
|
_log.LogInformation($"Could not create user since the have no username (Probably a Home User), PlexUserId: {plexUser.Id}, Title: {plexUser.Title}");
|
|
|
|
|
continue;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|