mirror of
https://github.com/lidarr/Lidarr
synced 2025-01-30 02:41:45 +00:00
Processed comments.
This commit is contained in:
parent
102acae972
commit
2345984bda
6 changed files with 7 additions and 18 deletions
|
@ -11,7 +11,7 @@ public class JsonRpcRequestBuilder : HttpRequestBuilder
|
|||
public String Method { 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)
|
||||
{
|
||||
Method = method;
|
||||
|
|
|
@ -13,14 +13,6 @@ public TorrentSeedingSpecification(Logger logger)
|
|||
_logger = logger;
|
||||
}
|
||||
|
||||
public string RejectionReason
|
||||
{
|
||||
get
|
||||
{
|
||||
return "Not enough Torrent seeders";
|
||||
}
|
||||
}
|
||||
|
||||
public RejectionType Type
|
||||
{
|
||||
get
|
||||
|
@ -41,8 +33,8 @@ public Decision IsSatisfiedBy(RemoteEpisode remoteEpisode, SearchCriteriaBase se
|
|||
|
||||
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();
|
||||
|
|
|
@ -195,8 +195,7 @@ public override DownloadClientStatus GetStatus()
|
|||
protected override void Test(List<ValidationFailure> failures)
|
||||
{
|
||||
failures.AddIfNotNull(TestConnection());
|
||||
if (failures.Any())
|
||||
return;
|
||||
if (failures.Any()) return;
|
||||
failures.AddIfNotNull(TestCategory());
|
||||
failures.AddIfNotNull(TestGetTorrents());
|
||||
}
|
||||
|
|
|
@ -10,7 +10,7 @@ public class DelugeException : DownloadClientException
|
|||
public Int32 Code { get; set; }
|
||||
|
||||
public DelugeException(String message, Int32 code)
|
||||
:base (message)
|
||||
:base (message + " (code " + code + ")")
|
||||
{
|
||||
Code = code;
|
||||
}
|
||||
|
|
|
@ -175,8 +175,7 @@ public override DownloadClientStatus GetStatus()
|
|||
protected override void Test(List<ValidationFailure> failures)
|
||||
{
|
||||
failures.AddIfNotNull(TestConnection());
|
||||
if (failures.Any())
|
||||
return;
|
||||
if (failures.Any()) return;
|
||||
failures.AddIfNotNull(TestGetTorrents());
|
||||
}
|
||||
|
||||
|
|
|
@ -191,8 +191,7 @@ public override DownloadClientStatus GetStatus()
|
|||
protected override void Test(List<ValidationFailure> failures)
|
||||
{
|
||||
failures.AddIfNotNull(TestConnection());
|
||||
if (failures.Any())
|
||||
return;
|
||||
if (failures.Any()) return;
|
||||
failures.AddIfNotNull(TestGetTorrents());
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue