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" }) +