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 <noreply@anthropic.com>
This commit is contained in:
xFlawless11x
2026-05-14 23:13:43 -04:00
parent 1711d256c2
commit a7186096df
+3
View File
@@ -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
});