Added the watchlist import for movies

This commit is contained in:
tidusjar 2022-04-07 11:20:33 +01:00
commit f41eea89a0
55 changed files with 1824 additions and 136 deletions

View file

@ -7,6 +7,7 @@ namespace Ombi.Core.Settings.Models.External
public sealed class PlexSettings : Ombi.Settings.Settings.Models.Settings
{
public bool Enable { get; set; }
public bool EnableWatchlistImport { get; set; }
/// <summary>
/// This is the ClientId for OAuth
/// </summary>

View file

@ -19,5 +19,6 @@
public string RetryRequests { get; set; }
public string MediaDatabaseRefresh { get; set; }
public string AutoDeleteRequests { get; set; }
public string PlexWatchlistImport { get; set; }
}
}

View file

@ -54,6 +54,11 @@ namespace Ombi.Settings.Settings.Models
{
return ValidateCron(Get(s.UserImporter, Cron.Daily()));
}
public static string PlexWatchlistImport(JobSettings s)
{
return ValidateCron(Get(s.PlexWatchlistImport, Cron.Daily()));
}
public static string Newsletter(JobSettings s)
{