This commit is contained in:
Jamie.Rees 2016-12-29 11:49:14 +00:00
commit ba80dfe3aa
4 changed files with 26 additions and 22 deletions

View file

@ -47,7 +47,7 @@ namespace Ombi.Services.Jobs
IWatcherApi watcherApi, ICacheProvider cache, IJobRecord rec)
{
WatcherSettings = watcher;
WatcherApi = WatcherApi;
WatcherApi = watcherApi;
Cache = cache;
Job = rec;
}
@ -80,7 +80,7 @@ namespace Ombi.Services.Jobs
movies?.Results?.Where(x => x.status.Equals("Wanted", StringComparison.CurrentCultureIgnoreCase));
if (wantedMovies != null && wantedMovies.Any())
{
Cache.Set(CacheKeys.WatcherQueued, movies.Results.Select(x => x.imdbid), CacheKeys.TimeFrameMinutes.SchedulerCaching);
Cache.Set(CacheKeys.WatcherQueued, movies.Results.Select(x => x.imdbid).ToArray(), CacheKeys.TimeFrameMinutes.SchedulerCaching);
}
}