Get 1000 releases from indexers
This commit is contained in:
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…
Reference in New Issue