Get 1000 releases from indexers

pull/2/head
Mark McDowall 11 years ago
parent 6cbc8687de
commit 442ab2b7c4

@ -75,7 +75,7 @@ namespace NzbDrone.Core.Test.IndexerTests
var indexer = WithIndexer(true, 100);
Subject.Fetch(indexer, new SeasonSearchCriteria { Series = _series, SceneTitle = _series.Title });
Mocker.GetMock<IHttpProvider>().Verify(v => v.DownloadString(It.IsAny<String>()), Times.Exactly(11));
Mocker.GetMock<IHttpProvider>().Verify(v => v.DownloadString(It.IsAny<String>()), Times.Exactly(10));
}
}

@ -61,7 +61,7 @@ namespace NzbDrone.Core.Indexers
_logger.Info("{0} offset {1}. Found {2}", indexer, searchCriteria, result.Count);
if (result.Count > 90 &&
offset < 1000 &&
offset < 900 &&
indexer.SupportsPaging)
{
result.AddRange(Fetch(indexer, searchCriteria, offset + 100));

Loading…
Cancel
Save