mirror of
https://github.com/Radarr/Radarr
synced 2024-12-27 02:09:59 +00:00
Allowed release group added to UI.
This commit is contained in:
parent
67064ec495
commit
33274d04f0
3 changed files with 11 additions and 0 deletions
|
@ -244,6 +244,7 @@ public ActionResult Misc()
|
||||||
var model = new MiscSettingsModel();
|
var model = new MiscSettingsModel();
|
||||||
model.EnableBacklogSearching = _configProvider.EnableBacklogSearching;
|
model.EnableBacklogSearching = _configProvider.EnableBacklogSearching;
|
||||||
model.AutoIgnorePreviouslyDownloadedEpisodes = _configProvider.AutoIgnorePreviouslyDownloadedEpisodes;
|
model.AutoIgnorePreviouslyDownloadedEpisodes = _configProvider.AutoIgnorePreviouslyDownloadedEpisodes;
|
||||||
|
model.AllowedReleaseGroups = _configProvider.AllowedReleaseGroups;
|
||||||
|
|
||||||
return View(model);
|
return View(model);
|
||||||
}
|
}
|
||||||
|
@ -633,6 +634,7 @@ public JsonResult SaveMisc(MiscSettingsModel data)
|
||||||
{
|
{
|
||||||
_configProvider.EnableBacklogSearching = data.EnableBacklogSearching;
|
_configProvider.EnableBacklogSearching = data.EnableBacklogSearching;
|
||||||
_configProvider.AutoIgnorePreviouslyDownloadedEpisodes = data.AutoIgnorePreviouslyDownloadedEpisodes;
|
_configProvider.AutoIgnorePreviouslyDownloadedEpisodes = data.AutoIgnorePreviouslyDownloadedEpisodes;
|
||||||
|
_configProvider.AllowedReleaseGroups = data.AllowedReleaseGroups;
|
||||||
|
|
||||||
return GetSuccessResult();
|
return GetSuccessResult();
|
||||||
}
|
}
|
||||||
|
|
|
@ -15,5 +15,9 @@ public class MiscSettingsModel
|
||||||
[DisplayName("Automatically Ignore Deleted Episodes")]
|
[DisplayName("Automatically Ignore Deleted Episodes")]
|
||||||
[Description("Should NzbDrone automatically ignore episodes that were deleted from disk?")]
|
[Description("Should NzbDrone automatically ignore episodes that were deleted from disk?")]
|
||||||
public bool AutoIgnorePreviouslyDownloadedEpisodes { get; set; }
|
public bool AutoIgnorePreviouslyDownloadedEpisodes { get; set; }
|
||||||
|
|
||||||
|
[DisplayName("Allowed Release Groups")]
|
||||||
|
[Description("Comma separated list of release groups to download episodes")]
|
||||||
|
public string AllowedReleaseGroups { get; set; }
|
||||||
}
|
}
|
||||||
}
|
}
|
|
@ -19,6 +19,11 @@
|
||||||
</label>
|
</label>
|
||||||
@Html.CheckBoxFor(m => m.AutoIgnorePreviouslyDownloadedEpisodes, new { @class = "inputClass checkClass" })
|
@Html.CheckBoxFor(m => m.AutoIgnorePreviouslyDownloadedEpisodes, new { @class = "inputClass checkClass" })
|
||||||
|
|
||||||
|
<label class="labelClass">@Html.LabelFor(m => m.AllowedReleaseGroups)
|
||||||
|
<span class="small">@Html.DescriptionFor(m => m.AllowedReleaseGroups)</span>
|
||||||
|
</label>
|
||||||
|
@Html.TextBoxFor(m => m.AllowedReleaseGroups, new { @class = "inputClass" })
|
||||||
|
|
||||||
<div style="overflow: hidden; height: 50px;">
|
<div style="overflow: hidden; height: 50px;">
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue