mirror of
https://github.com/Radarr/Radarr.git
synced 2024-11-09 20:42:37 +01:00
Added nzbx to UI
New: nzbx indexer added
This commit is contained in:
parent
7dd846b9e9
commit
49f6c9cffb
@ -113,7 +113,7 @@ protected override EpisodeParseResult CustomParser(SyndicationItem item, Episode
|
||||
|
||||
public override bool EnabledByDefault
|
||||
{
|
||||
get { return true; }
|
||||
get { return false; }
|
||||
}
|
||||
|
||||
protected override string TitlePreParser(SyndicationItem item)
|
||||
|
BIN
NzbDrone.Web/Content/Images/Indexers/nzbx.png
Normal file
BIN
NzbDrone.Web/Content/Images/Indexers/nzbx.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 665 B |
@ -111,6 +111,7 @@ public ActionResult Indexers()
|
||||
NzbIndexEnabled = _indexerProvider.GetSettings(typeof(NzbIndex)).Enable,
|
||||
NzbClubEnabled = _indexerProvider.GetSettings(typeof(NzbClub)).Enable,
|
||||
OmgwtfnzbsEnabled = _indexerProvider.GetSettings(typeof(Omgwtfnzbs)).Enable,
|
||||
NzbxEnabled = _indexerProvider.GetSettings(typeof(Nzbx)).Enable,
|
||||
|
||||
RssSyncInterval = _configProvider.RssSyncInterval,
|
||||
|
||||
@ -404,6 +405,10 @@ public JsonResult SaveIndexers(IndexerSettingsModel data)
|
||||
omgwtfnzbsSettings.Enable = data.OmgwtfnzbsEnabled;
|
||||
_indexerProvider.SaveSettings(omgwtfnzbsSettings);
|
||||
|
||||
var nzbxSettings = _indexerProvider.GetSettings(typeof(Nzbx));
|
||||
nzbxSettings.Enable = data.NzbxEnabled;
|
||||
_indexerProvider.SaveSettings(nzbxSettings);
|
||||
|
||||
_configProvider.NzbsrusUId = data.NzbsrusUId;
|
||||
_configProvider.NzbsrusHash = data.NzbsrusHash;
|
||||
|
||||
|
@ -79,6 +79,10 @@ public class IndexerSettingsModel
|
||||
[Description("Enable downloading episodes from omgwtfnzbs")]
|
||||
public bool OmgwtfnzbsEnabled { get; set; }
|
||||
|
||||
[DisplayName("nzbx")]
|
||||
[Description("Enable downloading episodes from nzbx")]
|
||||
public bool NzbxEnabled { get; set; }
|
||||
|
||||
[Required(ErrorMessage = "Please enter a valid number of days")]
|
||||
[DataType(DataType.Text)]
|
||||
[DisplayName("Retention")]
|
||||
|
@ -25,13 +25,16 @@
|
||||
<label for="fileSharingTalkStatus">File Sharing Talk</label>
|
||||
|
||||
@Html.CheckBox("nzbIndexStatus", @Model.NzbIndexEnabled, new { @class = "indexerStatusButton" })
|
||||
<label for="nzbIndexStatus">NzbIndex</label>
|
||||
<label for="nzbIndexStatus">NzbIndex</label>
|
||||
|
||||
@Html.CheckBox("nzbClubStatus", @Model.NzbClubEnabled, new { @class = "indexerStatusButton" })
|
||||
<label for="nzbClubStatus">Nzb Club</label>
|
||||
|
||||
@Html.CheckBox("omgwtfnzbsStatus", @Model.OmgwtfnzbsEnabled, new { @class = "indexerStatusButton" })
|
||||
<label for="omgwtfnzbsStatus">omgwtfnzbs</label>
|
||||
<label for="omgwtfnzbsStatus">omgwtfnzbs</label>
|
||||
|
||||
@Html.CheckBox("nzbxStatus", @Model.NzbxEnabled, new { @class = "indexerStatusButton" })
|
||||
<label for="nzbxStatus">nzbx</label>
|
||||
</div>
|
||||
<div id="stylized">
|
||||
@using (Html.BeginForm("SaveIndexers", "Settings", FormMethod.Post, new { id = "IndexersForm", name = "IndexersForm", @class = "settingsForm" }))
|
||||
@ -139,6 +142,14 @@
|
||||
</label>
|
||||
@Html.TextBoxFor(m => m.OmgwtfnzbsApiKey, new { @class = "inputClass" })
|
||||
</div>
|
||||
|
||||
<h3><a href="#">nzbx</a></h3>
|
||||
<div class="indexerPanel">
|
||||
<label class="labelClass">
|
||||
Enable <span class="small">@Html.DescriptionFor(m => m.NzbxEnabled)</span>
|
||||
</label>
|
||||
@Html.CheckBoxFor(m => m.NzbxEnabled, new { @class = "inputClass checkClass enabledCheck" })
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="indexer-global-settings">
|
||||
@ -216,6 +227,9 @@
|
||||
|
||||
if (id == 'OmgwtfnzbsEnabled')
|
||||
$('#omgwtfnzbsStatus').prop('checked', checked);
|
||||
|
||||
if (id == 'NzbxEnabled')
|
||||
$('#nzbxStatus').prop('checked', checked);
|
||||
|
||||
$('.indexerStatusButton').button("refresh");
|
||||
reValidate();
|
||||
@ -245,6 +259,9 @@
|
||||
|
||||
if (id == 'omgwtfnzbsStatus')
|
||||
$('#OmgwtfnzbsEnabled').prop('checked', checked);
|
||||
|
||||
if (id == 'nzbxStatus')
|
||||
$('#NzbxEnabled').prop('checked', checked);
|
||||
|
||||
reValidate();
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user