mirror of
https://github.com/Radarr/Radarr
synced 2024-12-25 17:27:59 +00:00
Fixed Newznab Enabled not saving, now loading the correct enabled status for Newznab (Copy+Paste fail).
This commit is contained in:
parent
5ad11ba728
commit
2d00363b09
1 changed files with 5 additions and 1 deletions
|
@ -91,7 +91,7 @@ public ActionResult Indexers()
|
||||||
NzbMatrixEnabled = _indexerProvider.GetSettings(typeof(NzbMatrix)).Enable,
|
NzbMatrixEnabled = _indexerProvider.GetSettings(typeof(NzbMatrix)).Enable,
|
||||||
NzbsRUsEnabled = _indexerProvider.GetSettings(typeof(NzbsRUs)).Enable,
|
NzbsRUsEnabled = _indexerProvider.GetSettings(typeof(NzbsRUs)).Enable,
|
||||||
NewzbinEnabled = _indexerProvider.GetSettings(typeof(Newzbin)).Enable,
|
NewzbinEnabled = _indexerProvider.GetSettings(typeof(Newzbin)).Enable,
|
||||||
NewznabEnabled = _indexerProvider.GetSettings(typeof(Newzbin)).Enable,
|
NewznabEnabled = _indexerProvider.GetSettings(typeof(Newznab)).Enable,
|
||||||
|
|
||||||
NewznabDefinitions = _newznabProvider.All(),
|
NewznabDefinitions = _newznabProvider.All(),
|
||||||
});
|
});
|
||||||
|
@ -387,6 +387,10 @@ public JsonResult SaveIndexers(IndexerSettingsModel data)
|
||||||
newzbinSettings.Enable = data.NewzbinEnabled;
|
newzbinSettings.Enable = data.NewzbinEnabled;
|
||||||
_indexerProvider.SaveSettings(newzbinSettings);
|
_indexerProvider.SaveSettings(newzbinSettings);
|
||||||
|
|
||||||
|
var newznabSettings = _indexerProvider.GetSettings(typeof(Newznab));
|
||||||
|
newznabSettings.Enable = data.NewznabEnabled;
|
||||||
|
_indexerProvider.SaveSettings(newznabSettings);
|
||||||
|
|
||||||
_configProvider.NzbsOrgUId = data.NzbsOrgUId;
|
_configProvider.NzbsOrgUId = data.NzbsOrgUId;
|
||||||
_configProvider.NzbsOrgHash = data.NzbsOrgHash;
|
_configProvider.NzbsOrgHash = data.NzbsOrgHash;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue