From 963b4e6ee88b98008a42b8bec3447d8e07db3b39 Mon Sep 17 00:00:00 2001 From: tidusjar Date: Wed, 10 Aug 2016 12:39:48 +0100 Subject: [PATCH] Added an option to disable/enable the Plex episode cacher --- .../SettingModels/PlexSettings.cs | 1 + .../Jobs/PlexEpisodeCacher.cs | 11 ++++++++--- PlexRequests.UI/Views/Admin/Plex.cshtml | 19 +++++++++++++++++++ 3 files changed, 28 insertions(+), 3 deletions(-) diff --git a/PlexRequests.Core/SettingModels/PlexSettings.cs b/PlexRequests.Core/SettingModels/PlexSettings.cs index 59148f28c..2312772ac 100644 --- a/PlexRequests.Core/SettingModels/PlexSettings.cs +++ b/PlexRequests.Core/SettingModels/PlexSettings.cs @@ -29,6 +29,7 @@ namespace PlexRequests.Core.SettingModels public sealed class PlexSettings : ExternalSettings { public bool AdvancedSearch { get; set; } + public bool EnableTvEpisodeSearching { get; set; } public string PlexAuthToken { get; set; } } diff --git a/PlexRequests.Services/Jobs/PlexEpisodeCacher.cs b/PlexRequests.Services/Jobs/PlexEpisodeCacher.cs index 63794cb17..3a4af04dd 100644 --- a/PlexRequests.Services/Jobs/PlexEpisodeCacher.cs +++ b/PlexRequests.Services/Jobs/PlexEpisodeCacher.cs @@ -71,10 +71,9 @@ namespace PlexRequests.Services.Jobs private const string TableName = "PlexEpisodes"; - public void CacheEpisodes() + public void CacheEpisodes(PlexSettings settings) { var videoHashset = new HashSet