1
0
mirror of https://github.com/Radarr/Radarr.git synced 2026-04-26 22:46:53 -04:00

Fixed Deluge and BTN cleanse password logic.

This commit is contained in:
Taloth Saldono
2016-04-14 20:44:49 +02:00
parent c7d445d1c1
commit 90b5947a19
3 changed files with 7 additions and 2 deletions
@@ -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)