Fixed: (NzbIndex) Paging starts at 0

Fixes #1586
This commit is contained in:
Qstick 2023-04-08 09:52:17 -05:00 committed by GitHub
parent 21bda07510
commit ebca32af46
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1037,7 +1037,7 @@ namespace NzbDrone.Core.Indexers.Definitions
{ "key", Settings.ApiKey },
{ "max", limit.ToString() },
{ "q", searchString },
{ "p", ((offset / limit) + 1).ToString() }
{ "p", (offset / limit).ToString() }
};
var searchUrl = string.Format("{0}/api/v3/search/?{1}", Settings.BaseUrl.TrimEnd('/'), queryCollection.GetQueryString());