diff --git a/src/NzbDrone.Common/Http/JsonRpcRequestBuilder.cs b/src/NzbDrone.Common/Http/JsonRpcRequestBuilder.cs index 9a3d53f30..328a4bdb0 100644 --- a/src/NzbDrone.Common/Http/JsonRpcRequestBuilder.cs +++ b/src/NzbDrone.Common/Http/JsonRpcRequestBuilder.cs @@ -11,7 +11,7 @@ namespace NzbDrone.Common.Http public String Method { get; private set; } public List Parameters { get; private set; } - public JsonRpcRequestBuilder(String baseUri, String method, Object[] parameters) + public JsonRpcRequestBuilder(String baseUri, String method, IEnumerable parameters) : base (baseUri) { Method = method; diff --git a/src/NzbDrone.Core/DecisionEngine/Specifications/Search/TorrentSeedingSpecification.cs b/src/NzbDrone.Core/DecisionEngine/Specifications/Search/TorrentSeedingSpecification.cs index 03096db6b..12ac5e7ab 100644 --- a/src/NzbDrone.Core/DecisionEngine/Specifications/Search/TorrentSeedingSpecification.cs +++ b/src/NzbDrone.Core/DecisionEngine/Specifications/Search/TorrentSeedingSpecification.cs @@ -13,14 +13,6 @@ namespace NzbDrone.Core.DecisionEngine.Specifications.Search _logger = logger; } - public string RejectionReason - { - get - { - return "Not enough Torrent seeders"; - } - } - public RejectionType Type { get @@ -41,8 +33,8 @@ namespace NzbDrone.Core.DecisionEngine.Specifications.Search if (torrentInfo.Seeds != null && torrentInfo.Seeds < 1) { - _logger.Debug("Only {0} seeders, skipping.", torrentInfo.Seeds); - return Decision.Reject("No seeders"); + _logger.Debug("Not enough seeders. ({0})", torrentInfo.Seeds); + return Decision.Reject("Not enough seeders. ({0})", torrentInfo.Seeds); } return Decision.Accept(); diff --git a/src/NzbDrone.Core/Download/Clients/Deluge/Deluge.cs b/src/NzbDrone.Core/Download/Clients/Deluge/Deluge.cs index aa20fafa0..e624a2b54 100644 --- a/src/NzbDrone.Core/Download/Clients/Deluge/Deluge.cs +++ b/src/NzbDrone.Core/Download/Clients/Deluge/Deluge.cs @@ -195,8 +195,7 @@ namespace NzbDrone.Core.Download.Clients.Deluge protected override void Test(List failures) { failures.AddIfNotNull(TestConnection()); - if (failures.Any()) - return; + if (failures.Any()) return; failures.AddIfNotNull(TestCategory()); failures.AddIfNotNull(TestGetTorrents()); } diff --git a/src/NzbDrone.Core/Download/Clients/Deluge/DelugeException.cs b/src/NzbDrone.Core/Download/Clients/Deluge/DelugeException.cs index a635edaa5..f41d6ca11 100644 --- a/src/NzbDrone.Core/Download/Clients/Deluge/DelugeException.cs +++ b/src/NzbDrone.Core/Download/Clients/Deluge/DelugeException.cs @@ -10,7 +10,7 @@ namespace NzbDrone.Core.Download.Clients.Deluge public Int32 Code { get; set; } public DelugeException(String message, Int32 code) - :base (message) + :base (message + " (code " + code + ")") { Code = code; } diff --git a/src/NzbDrone.Core/Download/Clients/Transmission/Transmission.cs b/src/NzbDrone.Core/Download/Clients/Transmission/Transmission.cs index 2288b2c28..8f9108b2e 100644 --- a/src/NzbDrone.Core/Download/Clients/Transmission/Transmission.cs +++ b/src/NzbDrone.Core/Download/Clients/Transmission/Transmission.cs @@ -175,8 +175,7 @@ namespace NzbDrone.Core.Download.Clients.Transmission protected override void Test(List failures) { failures.AddIfNotNull(TestConnection()); - if (failures.Any()) - return; + if (failures.Any()) return; failures.AddIfNotNull(TestGetTorrents()); } diff --git a/src/NzbDrone.Core/Download/Clients/uTorrent/UTorrent.cs b/src/NzbDrone.Core/Download/Clients/uTorrent/UTorrent.cs index 48ba7c935..61cb1c147 100644 --- a/src/NzbDrone.Core/Download/Clients/uTorrent/UTorrent.cs +++ b/src/NzbDrone.Core/Download/Clients/uTorrent/UTorrent.cs @@ -191,8 +191,7 @@ namespace NzbDrone.Core.Download.Clients.UTorrent protected override void Test(List failures) { failures.AddIfNotNull(TestConnection()); - if (failures.Any()) - return; + if (failures.Any()) return; failures.AddIfNotNull(TestGetTorrents()); }