|
|
@ -131,7 +131,7 @@ namespace NzbDrone.Core.Download.Clients.DownloadStation.Proxies
|
|
|
|
{
|
|
|
|
{
|
|
|
|
var authInfo = GetApiInfo(DiskStationApi.Auth, settings);
|
|
|
|
var authInfo = GetApiInfo(DiskStationApi.Auth, settings);
|
|
|
|
|
|
|
|
|
|
|
|
var requestBuilder = BuildRequest(settings, authInfo, "login", 2);
|
|
|
|
var requestBuilder = BuildRequest(settings, authInfo, "login", authInfo.MaxVersion >= 7 ? 6 : 2);
|
|
|
|
requestBuilder.AddQueryParam("account", settings.Username);
|
|
|
|
requestBuilder.AddQueryParam("account", settings.Username);
|
|
|
|
requestBuilder.AddQueryParam("passwd", settings.Password);
|
|
|
|
requestBuilder.AddQueryParam("passwd", settings.Password);
|
|
|
|
requestBuilder.AddQueryParam("format", "sid");
|
|
|
|
requestBuilder.AddQueryParam("format", "sid");
|
|
|
|