From a7186096df44b7667a4fb3b9062b8932c4b84676 Mon Sep 17 00:00:00 2001 From: xFlawless11x Date: Thu, 14 May 2026 23:13:43 -0400 Subject: [PATCH] Add User-Agent header to Prowlarr RSS queries Set User-Agent to "ReadMeABook" on the Newznab proxy RSS endpoint so RMAB is identifiable in Prowlarr stats instead of showing as generic "axios". Sonarr/Radarr already do this with their own User-Agent strings. Only applies to the RSS feed endpoint (/{indexerId}/api) which respects User-Agent for Source identification. The /api/v1/search endpoint hardcodes Source as "Prowlarr" regardless of headers. Co-Authored-By: Claude Opus 4.6 --- src/lib/integrations/prowlarr.service.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/lib/integrations/prowlarr.service.ts b/src/lib/integrations/prowlarr.service.ts index a2f0689..1229ab8 100644 --- a/src/lib/integrations/prowlarr.service.ts +++ b/src/lib/integrations/prowlarr.service.ts @@ -315,6 +315,9 @@ export class ProwlarrService { limit: 100, extended: 1, }, + headers: { + 'User-Agent': 'ReadMeABook', + }, timeout: DOWNLOAD_CLIENT_TIMEOUT, responseType: 'text', // Get XML as text });