1
0
mirror of https://github.com/Sonarr/Sonarr.git synced 2024-12-14 11:23:42 +02:00

Fix: Go to Settings -> Misc to set your preference for automatically ignoring deleted episodes (false by default).

This commit is contained in:
Mark McDowall 2012-02-27 22:06:02 -08:00
parent 1f24e87421
commit 6574a2b065
3 changed files with 11 additions and 0 deletions

View File

@ -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();
}

View File

@ -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; }
}
}

View File

@ -9,6 +9,11 @@
</label>
@Html.CheckBoxFor(m => m.EnableBacklogSearching, new { @class = "inputClass checkClass" })
<label class="labelClass">@Html.LabelFor(m => m.AutoIgnorePreviouslyDownloadedEpisodes)
<span class="small">@Html.DescriptionFor(m => m.AutoIgnorePreviouslyDownloadedEpisodes)</span>
</label>
@Html.CheckBoxFor(m => m.AutoIgnorePreviouslyDownloadedEpisodes, new { @class = "inputClass checkClass" })
<div style="overflow: hidden; height: 50px;">
</div>