mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-08-14 02:26:55 -07:00
Small change in the episode saver
This commit is contained in:
parent
7f6c70d7b2
commit
af1c93620f
1 changed files with 1 additions and 3 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue