1
0
Fork 0
mirror of https://github.com/Radarr/Radarr synced 2025-02-27 08:33:21 +00:00

Get 1000 releases from indexers

This commit is contained in:
Mark McDowall 2014-01-15 19:43:49 -08:00
parent 6cbc8687de
commit 442ab2b7c4
2 changed files with 2 additions and 2 deletions

View file

@ -75,7 +75,7 @@ public void should_not_use_offset_if_its_already_tried_10_times()
var indexer = WithIndexer(true, 100); var indexer = WithIndexer(true, 100);
Subject.Fetch(indexer, new SeasonSearchCriteria { Series = _series, SceneTitle = _series.Title }); 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));
} }
} }

View file

@ -61,7 +61,7 @@ private IList<ReleaseInfo> Fetch(IIndexer indexer, SeasonSearchCriteria searchCr
_logger.Info("{0} offset {1}. Found {2}", indexer, searchCriteria, result.Count); _logger.Info("{0} offset {1}. Found {2}", indexer, searchCriteria, result.Count);
if (result.Count > 90 && if (result.Count > 90 &&
offset < 1000 && offset < 900 &&
indexer.SupportsPaging) indexer.SupportsPaging)
{ {
result.AddRange(Fetch(indexer, searchCriteria, offset + 100)); result.AddRange(Fetch(indexer, searchCriteria, offset + 100));