|
|
@ -85,12 +85,7 @@ namespace NzbDrone.Core.Download.Clients.Sabnzbd
|
|
|
|
var request = new RestRequest();
|
|
|
|
var request = new RestRequest();
|
|
|
|
var action = "mode=get_cats";
|
|
|
|
var action = "mode=get_cats";
|
|
|
|
|
|
|
|
|
|
|
|
SabnzbdCategoryResponse response;
|
|
|
|
var response = Json.Deserialize<SabnzbdCategoryResponse>(ProcessRequest(request, action, settings));
|
|
|
|
|
|
|
|
|
|
|
|
if (!Json.TryDeserialize<SabnzbdCategoryResponse>(ProcessRequest(request, action, settings), out response))
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
response = new SabnzbdCategoryResponse();
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
return response;
|
|
|
|
return response;
|
|
|
|
}
|
|
|
|
}
|
|
|
|