|
|
@ -11,34 +11,34 @@ namespace Ombi.Schedule
|
|
|
|
{
|
|
|
|
{
|
|
|
|
public class JobSetup : IJobSetup
|
|
|
|
public class JobSetup : IJobSetup
|
|
|
|
{
|
|
|
|
{
|
|
|
|
public JobSetup(IPlexContentSync plexContentSync, IRadarrCacher radarrCacher,
|
|
|
|
public JobSetup(IPlexContentSync plexContentSync, IRadarrSync radarrSync,
|
|
|
|
IOmbiAutomaticUpdater updater, IEmbyContentSync embySync, IPlexUserImporter userImporter,
|
|
|
|
IOmbiAutomaticUpdater updater, IEmbyContentSync embySync, IPlexUserImporter userImporter,
|
|
|
|
IEmbyUserImporter embyUserImporter, ISonarrCacher cache, ICouchPotatoCacher cpCache)
|
|
|
|
IEmbyUserImporter embyUserImporter, ISonarrSync cache, ICouchPotatoSync cpCache)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
PlexContentSync = plexContentSync;
|
|
|
|
PlexContentSync = plexContentSync;
|
|
|
|
RadarrCacher = radarrCacher;
|
|
|
|
RadarrSync = radarrSync;
|
|
|
|
Updater = updater;
|
|
|
|
Updater = updater;
|
|
|
|
EmbyContentSync = embySync;
|
|
|
|
EmbyContentSync = embySync;
|
|
|
|
PlexUserImporter = userImporter;
|
|
|
|
PlexUserImporter = userImporter;
|
|
|
|
EmbyUserImporter = embyUserImporter;
|
|
|
|
EmbyUserImporter = embyUserImporter;
|
|
|
|
SonarrCacher = cache;
|
|
|
|
SonarrSync = cache;
|
|
|
|
CpCache = cpCache;
|
|
|
|
CpCache = cpCache;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
private IPlexContentSync PlexContentSync { get; }
|
|
|
|
private IPlexContentSync PlexContentSync { get; }
|
|
|
|
private IRadarrCacher RadarrCacher { get; }
|
|
|
|
private IRadarrSync RadarrSync { get; }
|
|
|
|
private IOmbiAutomaticUpdater Updater { get; }
|
|
|
|
private IOmbiAutomaticUpdater Updater { get; }
|
|
|
|
private IPlexUserImporter PlexUserImporter { get; }
|
|
|
|
private IPlexUserImporter PlexUserImporter { get; }
|
|
|
|
private IEmbyContentSync EmbyContentSync { get; }
|
|
|
|
private IEmbyContentSync EmbyContentSync { get; }
|
|
|
|
private IEmbyUserImporter EmbyUserImporter { get; }
|
|
|
|
private IEmbyUserImporter EmbyUserImporter { get; }
|
|
|
|
private ISonarrCacher SonarrCacher { get; }
|
|
|
|
private ISonarrSync SonarrSync { get; }
|
|
|
|
private ICouchPotatoCacher CpCache { get; }
|
|
|
|
private ICouchPotatoSync CpCache { get; }
|
|
|
|
|
|
|
|
|
|
|
|
public void Setup()
|
|
|
|
public void Setup()
|
|
|
|
{
|
|
|
|
{
|
|
|
|
RecurringJob.AddOrUpdate(() => EmbyContentSync.Start(), Cron.Hourly(5));
|
|
|
|
RecurringJob.AddOrUpdate(() => EmbyContentSync.Start(), Cron.Hourly(5));
|
|
|
|
RecurringJob.AddOrUpdate(() => SonarrCacher.Start(), Cron.Hourly(10));
|
|
|
|
RecurringJob.AddOrUpdate(() => SonarrSync.Start(), Cron.Hourly(10));
|
|
|
|
RecurringJob.AddOrUpdate(() => RadarrCacher.CacheContent(), Cron.Hourly(15));
|
|
|
|
RecurringJob.AddOrUpdate(() => RadarrSync.CacheContent(), Cron.Hourly(15));
|
|
|
|
RecurringJob.AddOrUpdate(() => PlexContentSync.CacheContent(), Cron.Hourly(20));
|
|
|
|
RecurringJob.AddOrUpdate(() => PlexContentSync.CacheContent(), Cron.Hourly(20));
|
|
|
|
RecurringJob.AddOrUpdate(() => CpCache.Start(), Cron.Hourly(30));
|
|
|
|
RecurringJob.AddOrUpdate(() => CpCache.Start(), Cron.Hourly(30));
|
|
|
|
|
|
|
|
|
|
|
|