Summary
Fixes #805
All MaM filter options (Active, Freeleech, Freeleech or VIP, VIP only, Not VIP) were silently broken. Listenarr was sending unrecognised boolean parameters that MaM ignores, returning unfiltered results regardless of the configured setting.
MaM's API uses a single tor[searchType] parameter with specific string values for content filters. This PR replaces the five separate boolean parameters with the correct values, matching Prowlarr's working implementation as a reference.
| Filter | Before (broken) | After (fixed) |
|---|---|---|
| Active | tor[onlyActive]=1
| tor[searchType]=active
|
| Freeleech | tor[onlyFreeleech]=1
| tor[searchType]=fl
|
| Freeleech or VIP | tor[freeleechOrVip]=1
| tor[searchType]=fl-VIP
|
| VIP only | tor[onlyVip]=1
| tor[searchType]=VIP
|
| Not VIP | tor[notVip]=1
| tor[searchType]=nVIP
|
Test plan
- Configure MaM indexer with Not VIP filter
- Search for a title with both VIP and non-VIP results on MaM (e.g. Ready Player Two by Ernest Cline)
- Confirm only non-VIP results are returned
- Repeat for other filter values (Freeleech, VIP only, etc.)
Empirically confirmed on canary: Not VIP filter returned 5 results (including 3 VIP) before this fix, and 1 result (non-VIP only) after.
🤖 Generated with Claude Code
Automated Canary build