Added Nzbget version check for 12.0 or higher.

pull/6/head
Taloth Saldono 10 years ago
parent db4746bef7
commit 93c6047cd5

@ -254,7 +254,12 @@ namespace NzbDrone.Core.Download.Clients.Nzbget
{
try
{
_proxy.GetVersion(Settings);
var version = _proxy.GetVersion(Settings);
if (Version.Parse(version) < Version.Parse("12.0"))
{
return new ValidationFailure(string.Empty, "Nzbget version too low, need 12.0 or higher");
}
}
catch (Exception ex)
{

@ -86,7 +86,7 @@ namespace NzbDrone.Core.Download.Clients.Nzbget
{
var request = BuildRequest(new JsonRequest("version"));
return Json.Deserialize<NzbgetResponse<String>>(ProcessRequest(request, settings)).Version;
return Json.Deserialize<NzbgetResponse<String>>(ProcessRequest(request, settings)).Result;
}
public Dictionary<String, String> GetConfig(NzbgetSettings settings)

Loading…
Cancel
Save