|
|
@ -66,11 +66,11 @@ namespace NzbDrone.Web.Controllers
|
|
|
|
NzbMatrixApiKey =
|
|
|
|
NzbMatrixApiKey =
|
|
|
|
_configProvider.GetValue("NzbMatrixApiKey", String.Empty, true),
|
|
|
|
_configProvider.GetValue("NzbMatrixApiKey", String.Empty, true),
|
|
|
|
|
|
|
|
|
|
|
|
NzbsrusUId = _configProvider.GetValue("NzbsrusUId", String.Empty, true),
|
|
|
|
NzbsrusUId = _configProvider.NzbsrusUId,
|
|
|
|
NzbsrusHash = _configProvider.GetValue("NzbsrusHash", String.Empty, true),
|
|
|
|
NzbsrusHash = _configProvider.NzbsrusHash,
|
|
|
|
|
|
|
|
|
|
|
|
NzbsOrgHash = _configProvider.NzbsrusHash,
|
|
|
|
NzbsOrgHash = _configProvider.NzbsOrgHash,
|
|
|
|
NzbsOrgUId = _configProvider.NzbsrusUId,
|
|
|
|
NzbsOrgUId = _configProvider.NzbsOrgUId,
|
|
|
|
|
|
|
|
|
|
|
|
NewzbinUsername = _configProvider.NewzbinUsername,
|
|
|
|
NewzbinUsername = _configProvider.NewzbinUsername,
|
|
|
|
NewzbinPassword = _configProvider.NewzbinPassword,
|
|
|
|
NewzbinPassword = _configProvider.NewzbinPassword,
|
|
|
@ -214,7 +214,7 @@ namespace NzbDrone.Web.Controllers
|
|
|
|
{
|
|
|
|
{
|
|
|
|
Name = "New Profile",
|
|
|
|
Name = "New Profile",
|
|
|
|
UserProfile = true,
|
|
|
|
UserProfile = true,
|
|
|
|
Allowed = new List<QualityTypes> {QualityTypes.Unknown},
|
|
|
|
Allowed = new List<QualityTypes> { QualityTypes.Unknown },
|
|
|
|
Cutoff = QualityTypes.Unknown,
|
|
|
|
Cutoff = QualityTypes.Unknown,
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
@ -272,7 +272,7 @@ namespace NzbDrone.Web.Controllers
|
|
|
|
{
|
|
|
|
{
|
|
|
|
return new JsonResult { Data = "failed" };
|
|
|
|
return new JsonResult { Data = "failed" };
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
return new JsonResult { Data = "ok" };
|
|
|
|
return new JsonResult { Data = "ok" };
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
@ -333,14 +333,14 @@ namespace NzbDrone.Web.Controllers
|
|
|
|
newzbinSettings.Enable = data.NewzbinEnabled;
|
|
|
|
newzbinSettings.Enable = data.NewzbinEnabled;
|
|
|
|
_indexerProvider.SaveSettings(newzbinSettings);
|
|
|
|
_indexerProvider.SaveSettings(newzbinSettings);
|
|
|
|
|
|
|
|
|
|
|
|
_configProvider.NzbsrusHash = data.NzbsOrgHash;
|
|
|
|
|
|
|
|
_configProvider.NzbsOrgUId = data.NzbsOrgUId;
|
|
|
|
_configProvider.NzbsOrgUId = data.NzbsOrgUId;
|
|
|
|
|
|
|
|
_configProvider.NzbsOrgHash = data.NzbsOrgHash;
|
|
|
|
|
|
|
|
|
|
|
|
_configProvider.NzbMatrixUsername = data.NzbMatrixUsername;
|
|
|
|
_configProvider.NzbMatrixUsername = data.NzbMatrixUsername;
|
|
|
|
_configProvider.NzbMatrixApiKey = data.NzbMatrixApiKey;
|
|
|
|
_configProvider.NzbMatrixApiKey = data.NzbMatrixApiKey;
|
|
|
|
|
|
|
|
|
|
|
|
_configProvider.NzbsrusUId = data.NzbsrusUId;
|
|
|
|
_configProvider.NzbsrusUId = data.NzbsrusUId;
|
|
|
|
_configProvider.NzbsOrgUId = data.NzbsrusHash;
|
|
|
|
_configProvider.NzbsrusHash = data.NzbsrusHash;
|
|
|
|
|
|
|
|
|
|
|
|
_configProvider.NewzbinUsername = data.NewzbinUsername;
|
|
|
|
_configProvider.NewzbinUsername = data.NewzbinUsername;
|
|
|
|
_configProvider.NewzbinPassword = data.NewzbinPassword;
|
|
|
|
_configProvider.NewzbinPassword = data.NewzbinPassword;
|
|
|
@ -402,7 +402,7 @@ namespace NzbDrone.Web.Controllers
|
|
|
|
return Content("Error Saving Settings, please fix any errors");
|
|
|
|
return Content("Error Saving Settings, please fix any errors");
|
|
|
|
//profile.Cutoff = profile.Allowed.Last();
|
|
|
|
//profile.Cutoff = profile.Allowed.Last();
|
|
|
|
|
|
|
|
|
|
|
|
_qualityProvider.Update(profile);
|
|
|
|
_qualityProvider.Update(profile);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return Content(SETTINGS_SAVED);
|
|
|
|
return Content(SETTINGS_SAVED);
|
|
|
|
}
|
|
|
|
}
|
|
|
|