mirror of
https://github.com/Jackett/Jackett.git
synced 2025-09-17 17:34:09 +02:00
nebulance-api: avoid requests for release calls that are 2 characters or fewer
This commit is contained in:
@@ -206,6 +206,14 @@ namespace Jackett.Common.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, limit, offset));
|
||||
|
||||
return pageableRequests;
|
||||
|
Reference in New Issue
Block a user