Processed comments.

pull/4/head
Taloth Saldono 10 years ago
parent 102acae972
commit 2345984bda

@ -11,7 +11,7 @@ namespace NzbDrone.Common.Http
public String Method { get; private set; } public String Method { get; private set; }
public List<Object> Parameters { get; private set; } public List<Object> Parameters { get; private set; }
public JsonRpcRequestBuilder(String baseUri, String method, Object[] parameters) public JsonRpcRequestBuilder(String baseUri, String method, IEnumerable<Object> parameters)
: base (baseUri) : base (baseUri)
{ {
Method = method; Method = method;

@ -13,14 +13,6 @@ namespace NzbDrone.Core.DecisionEngine.Specifications.Search
_logger = logger; _logger = logger;
} }
public string RejectionReason
{
get
{
return "Not enough Torrent seeders";
}
}
public RejectionType Type public RejectionType Type
{ {
get get
@ -41,8 +33,8 @@ namespace NzbDrone.Core.DecisionEngine.Specifications.Search
if (torrentInfo.Seeds != null && torrentInfo.Seeds < 1) if (torrentInfo.Seeds != null && torrentInfo.Seeds < 1)
{ {
_logger.Debug("Only {0} seeders, skipping.", torrentInfo.Seeds); _logger.Debug("Not enough seeders. ({0})", torrentInfo.Seeds);
return Decision.Reject("No seeders"); return Decision.Reject("Not enough seeders. ({0})", torrentInfo.Seeds);
} }
return Decision.Accept(); return Decision.Accept();

@ -195,8 +195,7 @@ namespace NzbDrone.Core.Download.Clients.Deluge
protected override void Test(List<ValidationFailure> failures) protected override void Test(List<ValidationFailure> failures)
{ {
failures.AddIfNotNull(TestConnection()); failures.AddIfNotNull(TestConnection());
if (failures.Any()) if (failures.Any()) return;
return;
failures.AddIfNotNull(TestCategory()); failures.AddIfNotNull(TestCategory());
failures.AddIfNotNull(TestGetTorrents()); failures.AddIfNotNull(TestGetTorrents());
} }

@ -10,7 +10,7 @@ namespace NzbDrone.Core.Download.Clients.Deluge
public Int32 Code { get; set; } public Int32 Code { get; set; }
public DelugeException(String message, Int32 code) public DelugeException(String message, Int32 code)
:base (message) :base (message + " (code " + code + ")")
{ {
Code = code; Code = code;
} }

@ -175,8 +175,7 @@ namespace NzbDrone.Core.Download.Clients.Transmission
protected override void Test(List<ValidationFailure> failures) protected override void Test(List<ValidationFailure> failures)
{ {
failures.AddIfNotNull(TestConnection()); failures.AddIfNotNull(TestConnection());
if (failures.Any()) if (failures.Any()) return;
return;
failures.AddIfNotNull(TestGetTorrents()); failures.AddIfNotNull(TestGetTorrents());
} }

@ -191,8 +191,7 @@ namespace NzbDrone.Core.Download.Clients.UTorrent
protected override void Test(List<ValidationFailure> failures) protected override void Test(List<ValidationFailure> failures)
{ {
failures.AddIfNotNull(TestConnection()); failures.AddIfNotNull(TestConnection());
if (failures.Any()) if (failures.Any()) return;
return;
failures.AddIfNotNull(TestGetTorrents()); failures.AddIfNotNull(TestGetTorrents());
} }

Loading…
Cancel
Save