Summary
Adds a "URL Base" field to the qBittorrent download client (closes #690), so Listenarr can reach qBittorrent instances served behind a path-prefixed reverse proxy (e.g. example.com/qbittorrent) — matching the field Transmission's client already has.
I deliberately didn't just copy Transmission's mechanism. Transmission's urlBase replaces its whole RPC path, because that mirrors Transmission's own daemon setting (--rpc-url-base) — Listenarr just matches whatever arbitrary path the user configured server-side. qBittorrent has no equivalent: I checked upstream, and a native WebUI base-path setting has been proposed twice (qbittorrent/qBittorrent#21471, closed unmerged; #23467, still open/unmerged) — neither has shipped. So every real qBittorrent-behind-a-proxy deployment today works by the reverse proxy stripping a path prefix before it reaches qBittorrent, which always serves at its own root regardless. That means the correct semantics here are a prefix prepended before the fixed /api/v2/... routes, not a full-path override.
Changes
Added
QBittorrentHelpers.BuildBaseUrl()— composes authority + normalizedurlBaseprefix from client settings; no-op when unset, so existing configs are unaffected- "URL Base" field now renders for qBittorrent in the download client form, with qBittorrent-specific placeholder/help text (distinct from Transmission's field, since the semantics differ)
- Backend test asserting the actual HTTP request hits
/qbittorrent/api/v2/app/versionwhen configured - Frontend test asserting the field renders for qBittorrent and flows into the save/test payload
Changed
- The 8 qBittorrent workflow files that each independently called
DownloadClientUriBuilder.BuildAuthority(client)now go through the new helper instead (mechanical, one line each — no other behavior change)
Testing
dotnet build/dotnet format --verify-no-changesclean- Targeted ...
Automated Canary build