From ea17116998bf69d696977559b8da895af9e7b5c6 Mon Sep 17 00:00:00 2001 From: Bogdan Date: Sun, 21 Jul 2024 02:39:02 +0300 Subject: [PATCH] Fixed: (Nebulance) Avoid requests for release calls that are 2 characters or fewer --- src/NzbDrone.Core/Indexers/Definitions/Nebulance.cs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/NzbDrone.Core/Indexers/Definitions/Nebulance.cs b/src/NzbDrone.Core/Indexers/Definitions/Nebulance.cs index 2d2b8508e..facdebd2a 100644 --- a/src/NzbDrone.Core/Indexers/Definitions/Nebulance.cs +++ b/src/NzbDrone.Core/Indexers/Definitions/Nebulance.cs @@ -162,6 +162,13 @@ namespace NzbDrone.Core.Indexers.Definitions return new IndexerPageableRequestChain(); } + if (queryParams.Name is { Length: < 3 } || queryParams.Release is { Length: < 3 }) + { + _logger.Debug("NBL API does not support release calls that are 2 characters or fewer."); + + return new IndexerPageableRequestChain(); + } + pageableRequests.Add(GetPagedRequests(queryParams, searchCriteria.Limit, searchCriteria.Offset)); return pageableRequests;