From 6574a2b0652ae5bd0bd2340d254d3423e4d6abb6 Mon Sep 17 00:00:00 2001 From: Mark McDowall Date: Mon, 27 Feb 2012 22:06:02 -0800 Subject: [PATCH] Fix: Go to Settings -> Misc to set your preference for automatically ignoring deleted episodes (false by default). --- NzbDrone.Web/Controllers/SettingsController.cs | 2 ++ NzbDrone.Web/Models/MiscSettingsModel.cs | 4 ++++ NzbDrone.Web/Views/Settings/Misc.cshtml | 5 +++++ 3 files changed, 11 insertions(+) diff --git a/NzbDrone.Web/Controllers/SettingsController.cs b/NzbDrone.Web/Controllers/SettingsController.cs index cfcc9f8cb..ff3c33d8a 100644 --- a/NzbDrone.Web/Controllers/SettingsController.cs +++ b/NzbDrone.Web/Controllers/SettingsController.cs @@ -232,6 +232,7 @@ public ActionResult Misc() { var model = new MiscSettingsModel(); model.EnableBacklogSearching = _configProvider.EnableBacklogSearching; + model.AutoIgnorePreviouslyDownloadedEpisodes = _configProvider.AutoIgnorePreviouslyDownloadedEpisodes; return View(model); } @@ -591,6 +592,7 @@ public JsonResult SaveMisc(MiscSettingsModel data) if (ModelState.IsValid) { _configProvider.EnableBacklogSearching = data.EnableBacklogSearching; + _configProvider.AutoIgnorePreviouslyDownloadedEpisodes = data.AutoIgnorePreviouslyDownloadedEpisodes; return GetSuccessResult(); } diff --git a/NzbDrone.Web/Models/MiscSettingsModel.cs b/NzbDrone.Web/Models/MiscSettingsModel.cs index cf0bcb12e..82cb57d30 100644 --- a/NzbDrone.Web/Models/MiscSettingsModel.cs +++ b/NzbDrone.Web/Models/MiscSettingsModel.cs @@ -11,5 +11,9 @@ public class MiscSettingsModel [DisplayName("Enable Backlog Searching")] [Description("Should NzbDrone try to download missing episodes automatically?")] public bool EnableBacklogSearching { get; set; } + + [DisplayName("Automatically Ignore Deleted Episodes")] + [Description("Should NzbDrone automatically ignore episodes that were deleted from disk?")] + public bool AutoIgnorePreviouslyDownloadedEpisodes { get; set; } } } \ No newline at end of file diff --git a/NzbDrone.Web/Views/Settings/Misc.cshtml b/NzbDrone.Web/Views/Settings/Misc.cshtml index 142af5ddd..77e573e63 100644 --- a/NzbDrone.Web/Views/Settings/Misc.cshtml +++ b/NzbDrone.Web/Views/Settings/Misc.cshtml @@ -9,6 +9,11 @@ @Html.CheckBoxFor(m => m.EnableBacklogSearching, new { @class = "inputClass checkClass" }) + + @Html.CheckBoxFor(m => m.AutoIgnorePreviouslyDownloadedEpisodes, new { @class = "inputClass checkClass" }) +