mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-08-14 10:36:54 -07:00
User management, migration and newsletter
This commit is contained in:
parent
11ecbf04f6
commit
42c437905e
26 changed files with 888 additions and 389 deletions
|
@ -26,13 +26,20 @@
|
|||
#endregion
|
||||
|
||||
using System.Collections.Generic;
|
||||
using PlexRequests.Core.Models;
|
||||
using PlexRequests.Core.Notification;
|
||||
using Newtonsoft.Json;
|
||||
using PlexRequests.Helpers;
|
||||
|
||||
namespace PlexRequests.Core.SettingModels
|
||||
{
|
||||
public class NewletterSettings : Settings
|
||||
{
|
||||
public bool SendRecentlyAddedEmail { get; set; }
|
||||
public bool SendToPlexUsers { get; set; }
|
||||
public string CustomUsers { get; set; }
|
||||
|
||||
|
||||
|
||||
[JsonIgnore]
|
||||
public IEnumerable<string> CustomUsersEmailAddresses => CustomUsers.SplitEmailsByDelimiter(';');
|
||||
}
|
||||
}
|
|
@ -24,23 +24,13 @@
|
|||
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
// ************************************************************************/
|
||||
#endregion
|
||||
|
||||
using System;
|
||||
|
||||
namespace PlexRequests.Core.SettingModels
|
||||
{
|
||||
public class ScheduledJobsSettings : Settings
|
||||
{
|
||||
public ScheduledJobsSettings()
|
||||
{
|
||||
PlexAvailabilityChecker = 60;
|
||||
SickRageCacher = 60;
|
||||
SonarrCacher = 60;
|
||||
CouchPotatoCacher = 60;
|
||||
StoreBackup = 24;
|
||||
StoreCleanup = 24;
|
||||
UserRequestLimitResetter = 12;
|
||||
PlexEpisodeCacher = 12;
|
||||
RecentlyAdded = 168;
|
||||
}
|
||||
|
||||
public int PlexAvailabilityChecker { get; set; }
|
||||
public int SickRageCacher { get; set; }
|
||||
public int SonarrCacher { get; set; }
|
||||
|
@ -49,6 +39,8 @@ namespace PlexRequests.Core.SettingModels
|
|||
public int StoreCleanup { get; set; }
|
||||
public int UserRequestLimitResetter { get; set; }
|
||||
public int PlexEpisodeCacher { get; set; }
|
||||
[Obsolete("We use the CRON job now")]
|
||||
public int RecentlyAdded { get; set; }
|
||||
public string RecentlyAddedCron { get; set; }
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue