|
|
|
@ -92,7 +92,7 @@ namespace NzbDrone.Core.Download.Clients.Deluge
|
|
|
|
|
|
|
|
|
|
public string AddTorrentFromFile(string filename, byte[] fileContent, DelugeSettings settings)
|
|
|
|
|
{
|
|
|
|
|
var response = ProcessRequest<string>(settings, "core.add_torrent_file", filename, Convert.ToBase64String(fileContent), new JObject());
|
|
|
|
|
var response = ProcessRequest<string>(settings, "core.add_torrent_file", filename, fileContent, new JObject());
|
|
|
|
|
|
|
|
|
|
return response;
|
|
|
|
|
}
|
|
|
|
@ -256,7 +256,6 @@ namespace NzbDrone.Core.Download.Clients.Deluge
|
|
|
|
|
_authCookieCache.Remove(authKey);
|
|
|
|
|
|
|
|
|
|
var authLoginRequest = requestBuilder.Call("auth.login", settings.Password).Build();
|
|
|
|
|
authLoginRequest.ContentSummary = "auth.login(\"(removed)\")";
|
|
|
|
|
var response = _httpClient.Execute(authLoginRequest);
|
|
|
|
|
var result = Json.Deserialize<JsonRpcResponse<bool>>(response.Content);
|
|
|
|
|
if (!result.Result)
|
|
|
|
|