From bba4af73984cfeddfb9d1bc3a74a51e50748ff4c Mon Sep 17 00:00:00 2001 From: kikootwo Date: Mon, 22 Dec 2025 15:22:48 -0500 Subject: [PATCH] Fix indexerIds serialization in ProwlarrService Update axios paramsSerializer and request logic to send indexerIds as repeated query parameters (indexerIds=1&indexerIds=2) instead of a comma-separated string. This ensures compatibility with Prowlarr's expected API format. --- src/lib/integrations/prowlarr.service.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/lib/integrations/prowlarr.service.ts b/src/lib/integrations/prowlarr.service.ts index b6e0a68..3a7a473 100644 --- a/src/lib/integrations/prowlarr.service.ts +++ b/src/lib/integrations/prowlarr.service.ts @@ -69,6 +69,9 @@ export class ProwlarrService { 'X-Api-Key': this.apiKey, }, timeout: 30000, // 30 seconds + paramsSerializer: { + indexes: null, // Use repeat format: indexerIds=1&indexerIds=2 (not indexerIds[0]=1) + }, }); } @@ -89,8 +92,9 @@ export class ProwlarrService { }; // Filter by specific indexers if provided + // Pass array directly - axios will serialize as indexerIds=1&indexerIds=2&indexerIds=3 if (filters?.indexerIds && filters.indexerIds.length > 0) { - params.indexerIds = filters.indexerIds.join(','); + params.indexerIds = filters.indexerIds; } const response = await this.client.get('/search', { params });