Fixed: (NzbIndex) Paging starts at 0

Fixes #1586
pull/1587/head
Qstick 1 year ago committed by GitHub
parent 21bda07510
commit ebca32af46
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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());

Loading…
Cancel
Save