Compare commits

...

4 Commits

Author SHA1 Message Date
Daniel Jacobs
c687bdb1fb Fixed: Don't send limit=0 to Newznab indexers (#2654)
* Fixed: Don't send limit=0 to Newznab indexers

When searching via the internal API, SearchResource.Limit defaults
to 0 because it's a non-nullable int. This gets passed through to
the Newznab request generator, which emits &limit=0 in the query URL.

Indexers that follow the Newznab spec honor limit=0 literally and
return zero results. Confirmed affected: DrunkenSlug and NZBGeek.

Changed Limit and Offset on SearchResource to int? so they default
to null when omitted, matching the existing behavior in NewznabRequest.
Also guard against emitting limit=0 in the request
generators.

Co-authored-by: Daniel Jacobs <danielj@certida.com>
Co-authored-by: Bogdan <mynameisbogdan@users.noreply.github.com>
2026-04-11 11:18:29 +02:00
ilike2burnthing
b2d49164bc Fixed: (ZonaQ) Obsolete per site policy 2026-04-08 21:31:22 +02:00
ilike2burnthing
28bd80d3aa Fixed: (SceneTime) Obsolete - migrated to YAML for Torznab API 2026-04-08 21:27:54 +02:00
RobinDadswell
0ffcfccf1d Version bump to 2.3.6 2026-04-02 20:50:24 +01:00
6 changed files with 7 additions and 5 deletions

View File

@@ -9,7 +9,7 @@ variables:
testsFolder: './_tests'
yarnCacheFolder: $(Pipeline.Workspace)/.yarn
nugetCacheFolder: $(Pipeline.Workspace)/.nuget/packages
majorVersion: '2.3.5'
majorVersion: '2.3.6'
minorVersion: $[counter('minorVersion', 1)]
prowlarrVersion: '$(majorVersion).$(minorVersion)'
buildName: '$(Build.SourceBranchName).$(prowlarrVersion)'

View File

@@ -120,7 +120,7 @@ namespace NzbDrone.Core.Indexers.Headphones
baseUrl += "&apikey=" + Settings.ApiKey;
}
if (searchCriteria.Limit.HasValue)
if (searchCriteria.Limit is > 0)
{
parameters.Add("limit", searchCriteria.Limit.ToString());
}

View File

@@ -263,7 +263,7 @@ namespace NzbDrone.Core.Indexers.Newznab
searchUrl += "&apikey=" + Settings.ApiKey;
}
if (searchCriteria.Limit.HasValue)
if (searchCriteria.Limit is > 0)
{
parameters.Set("limit", searchCriteria.Limit.ToString());
}

View File

@@ -19,6 +19,7 @@ using NzbDrone.Core.Parser.Model;
namespace NzbDrone.Core.Indexers.Definitions
{
[Obsolete("Migrated to YAML for Torznab API")]
public class SceneTime : TorrentIndexerBase<SceneTimeSettings>
{
public override string Name => "SceneTime";

View File

@@ -23,6 +23,7 @@ using NzbDrone.Core.Parser.Model;
namespace NzbDrone.Core.Indexers.Definitions
{
[Obsolete("Site does not allow automation")]
public class ZonaQ : TorrentIndexerBase<UserPassTorrentBaseSettings>
{
public override string Name => "ZonaQ";

View File

@@ -14,7 +14,7 @@ namespace Prowlarr.Api.V1.Search
public string Type { get; set; }
public List<int> IndexerIds { get; set; }
public List<int> Categories { get; set; }
public int Limit { get; set; }
public int Offset { get; set; }
public int? Limit { get; set; }
public int? Offset { get; set; }
}
}