Small change in the episode saver

pull/470/head
tidusjar 9 years ago
parent 7f6c70d7b2
commit af1c93620f

@ -64,7 +64,6 @@ namespace PlexRequests.Services.Jobs
public void CacheEpisodes()
{
var results = new PlexSearch();
var videoHashset = new HashSet<Video>();
var settings = Plex.GetSettings();
if (string.IsNullOrEmpty(settings.PlexAuthToken))
@ -80,7 +79,6 @@ namespace PlexRequests.Services.Jobs
int totalSize;
var episodes = PlexApi.GetAllEpisodes(settings.PlexAuthToken, settings.FullUri, tvSectionId, currentPosition, ResultCount);
results = episodes;
int.TryParse(episodes.TotalSize, out totalSize);
currentPosition += ResultCount;
@ -111,7 +109,7 @@ namespace PlexRequests.Services.Jobs
}
if (results.Video.Any())
if (episodesModel.Any())
{
Cache.Set(CacheKeys.PlexEpisodes, episodesModel, CacheKeys.TimeFrameMinutes.SchedulerCaching);
}

Loading…
Cancel
Save