fix: use MaM's tor[searchType] parameter for filter options - #806
Open
TheRealNoob wants to merge 1 commit into
Open
fix: use MaM's tor[searchType] parameter for filter options#806TheRealNoob wants to merge 1 commit into
TheRealNoob wants to merge 1 commit into
Conversation
All filter options (Active, Freeleech, FreeleechOrVip, Vip, NotVip) were sending unrecognised boolean parameters that MaM silently ignores, causing filters to have no effect on search results. MaM's API uses a single tor[searchType] parameter with specific string values. Replace the five separate boolean parameters with the correct tor[searchType] values matching Prowlarr's working implementation: Active -> tor[searchType]=active Freeleech -> tor[searchType]=fl FreeleechOrVip -> tor[searchType]=fl-VIP Vip -> tor[searchType]=VIP NotVip -> tor[searchType]=nVIP Empirically confirmed: Not VIP filter now returns 1 result instead of 5 (including 3 VIP torrents) for the same query. Fixes Listenarrs#805
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.tor[onlyActive]=1tor[searchType]=activetor[onlyFreeleech]=1tor[searchType]=fltor[freeleechOrVip]=1tor[searchType]=fl-VIPtor[onlyVip]=1tor[searchType]=VIPtor[notVip]=1tor[searchType]=nVIPTest plan
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