mirror of
https://github.com/Radarr/Radarr
synced 2025-02-26 16:13:19 +00:00
Fixed: SABnzbd test with fail if the API Key is wrong
This commit is contained in:
parent
46f904d165
commit
d703bc8dc5
2 changed files with 2 additions and 7 deletions
|
@ -127,7 +127,7 @@ public void Execute(TestSabnzbdCommand message)
|
|||
var settings = new SabnzbdSettings();
|
||||
settings.InjectFrom(message);
|
||||
|
||||
_sabnzbdProxy.GetVersion(settings);
|
||||
_sabnzbdProxy.GetCategories(settings);
|
||||
}
|
||||
}
|
||||
}
|
|
@ -85,12 +85,7 @@ public SabnzbdCategoryResponse GetCategories(SabnzbdSettings settings)
|
|||
var request = new RestRequest();
|
||||
var action = "mode=get_cats";
|
||||
|
||||
SabnzbdCategoryResponse response;
|
||||
|
||||
if (!Json.TryDeserialize<SabnzbdCategoryResponse>(ProcessRequest(request, action, settings), out response))
|
||||
{
|
||||
response = new SabnzbdCategoryResponse();
|
||||
}
|
||||
var response = Json.Deserialize<SabnzbdCategoryResponse>(ProcessRequest(request, action, settings));
|
||||
|
||||
return response;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue