New: Use PageSize reported by newznab/torznab caps instead of hardcoded 100.

ref Jackett/Jackett#27
This commit is contained in:
Taloth Saldono
2016-02-17 21:22:23 +01:00
parent df84028c90
commit 9ad8311dd6
8 changed files with 144 additions and 3 deletions
@@ -24,7 +24,10 @@ namespace NzbDrone.Core.Indexers.Newznab
}
public override DownloadProtocol Protocol { get { return DownloadProtocol.Usenet; } }
public override int PageSize { get { return 100; } }
public override int PageSize
{
get { return _capabilitiesProvider.GetCapabilities(Settings).DefaultPageSize; }
}
public override IIndexerRequestGenerator GetRequestGenerator()
{