|
|
|
@ -58,7 +58,6 @@ namespace PlexRequests.Core.SettingModels
|
|
|
|
|
public int MovieWeeklyRequestLimit { get; set; }
|
|
|
|
|
public int TvWeeklyRequestLimit { get; set; }
|
|
|
|
|
public int AlbumWeeklyRequestLimit { get; set; }
|
|
|
|
|
public string NoApprovalUsers { get; set; }
|
|
|
|
|
public bool CollectAnalyticData { get; set; }
|
|
|
|
|
public bool IgnoreNotifyForAutoApprovedRequests { get; set; }
|
|
|
|
|
public bool Wizard { get; set; }
|
|
|
|
@ -75,26 +74,5 @@ namespace PlexRequests.Core.SettingModels
|
|
|
|
|
public string ThemeName { get; set; }
|
|
|
|
|
|
|
|
|
|
public string ApiKey { get; set; }
|
|
|
|
|
|
|
|
|
|
[JsonIgnore]
|
|
|
|
|
public List<string> ApprovalWhiteList
|
|
|
|
|
{
|
|
|
|
|
get
|
|
|
|
|
{
|
|
|
|
|
var users = new List<string>();
|
|
|
|
|
if (string.IsNullOrEmpty(NoApprovalUsers))
|
|
|
|
|
{
|
|
|
|
|
return users;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
var splitUsers = NoApprovalUsers.Split(new[] { ',' }, StringSplitOptions.RemoveEmptyEntries);
|
|
|
|
|
foreach (var user in splitUsers)
|
|
|
|
|
{
|
|
|
|
|
if (!string.IsNullOrWhiteSpace(user))
|
|
|
|
|
users.Add(user.Trim());
|
|
|
|
|
}
|
|
|
|
|
return users;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|