|
|
|
@ -25,18 +25,18 @@ namespace NzbDrone.Core.Indexers.BroadcastheNet
|
|
|
|
|
{
|
|
|
|
|
var pageableRequests = new IndexerPageableRequestChain();
|
|
|
|
|
|
|
|
|
|
var parameters = new BroadcastheNetTorrentQuery();
|
|
|
|
|
|
|
|
|
|
if (LastRecentTorrentID.HasValue)
|
|
|
|
|
{
|
|
|
|
|
parameters.Id = ">=" + (LastRecentTorrentID.Value - 100);
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
pageableRequests.Add(GetPagedRequests(MaxPages, new BroadcastheNetTorrentQuery()
|
|
|
|
|
{
|
|
|
|
|
parameters.Age = "<=86400";
|
|
|
|
|
Id = ">=" + (LastRecentTorrentID.Value - 100)
|
|
|
|
|
}));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
pageableRequests.Add(GetPagedRequests(MaxPages, parameters));
|
|
|
|
|
pageableRequests.AddTier(GetPagedRequests(MaxPages, new BroadcastheNetTorrentQuery()
|
|
|
|
|
{
|
|
|
|
|
Age = "<=86400"
|
|
|
|
|
}));
|
|
|
|
|
|
|
|
|
|
return pageableRequests;
|
|
|
|
|
}
|
|
|
|
|