mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-07-14 17:22:54 -07:00
Added a new Job. Plex Recently Added, this is a slimmed down version of the Plex Sync job, this will just scan the recently added list and not the whole library. I'd reccomend running this very regulary and the full scan not as regular.
This commit is contained in:
parent
41d5ef5f41
commit
eeaf614a29
21 changed files with 152 additions and 3651 deletions
|
@ -21,7 +21,11 @@ namespace Ombi.Settings.Settings.Models
|
|||
}
|
||||
public static string PlexContent(JobSettings s)
|
||||
{
|
||||
return Get(s.PlexContentSync, Cron.Hourly(20));
|
||||
return Get(s.PlexContentSync, Cron.HourInterval(6));
|
||||
}
|
||||
public static string PlexRecentlyAdded(JobSettings s)
|
||||
{
|
||||
return Get(s.PlexRecentlyAddedSync, Cron.Hourly(0));
|
||||
}
|
||||
public static string CouchPotato(JobSettings s)
|
||||
{
|
||||
|
@ -49,7 +53,6 @@ namespace Ombi.Settings.Settings.Models
|
|||
return Get(s.RefreshMetadata, Cron.Daily(3));
|
||||
}
|
||||
|
||||
|
||||
private static string Get(string settings, string defaultCron)
|
||||
{
|
||||
return settings.HasValue() ? settings : defaultCron;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue