mirror of
https://github.com/Prowlarr/Prowlarr.git
synced 2025-09-27 20:44:00 +02:00
Allowed release group added to UI.
This commit is contained in:
@@ -244,6 +244,7 @@ namespace NzbDrone.Web.Controllers
|
||||
var model = new MiscSettingsModel();
|
||||
model.EnableBacklogSearching = _configProvider.EnableBacklogSearching;
|
||||
model.AutoIgnorePreviouslyDownloadedEpisodes = _configProvider.AutoIgnorePreviouslyDownloadedEpisodes;
|
||||
model.AllowedReleaseGroups = _configProvider.AllowedReleaseGroups;
|
||||
|
||||
return View(model);
|
||||
}
|
||||
@@ -633,6 +634,7 @@ namespace NzbDrone.Web.Controllers
|
||||
{
|
||||
_configProvider.EnableBacklogSearching = data.EnableBacklogSearching;
|
||||
_configProvider.AutoIgnorePreviouslyDownloadedEpisodes = data.AutoIgnorePreviouslyDownloadedEpisodes;
|
||||
_configProvider.AllowedReleaseGroups = data.AllowedReleaseGroups;
|
||||
|
||||
return GetSuccessResult();
|
||||
}
|
||||
|
@@ -15,5 +15,9 @@ namespace NzbDrone.Web.Models
|
||||
[DisplayName("Automatically Ignore Deleted Episodes")]
|
||||
[Description("Should NzbDrone automatically ignore episodes that were deleted from disk?")]
|
||||
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>
|
||||
@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>
|
||||
|
||||
|
Reference in New Issue
Block a user