-
-
Notifications
You must be signed in to change notification settings - Fork 28
Open
Labels
enhancementNew feature or requestNew feature or requestgood first issueGood for newcomersGood for newcomers
Description
Problem
Currently, SeerrBridge uses a single TORRENT_FILTER_REGEX that gets applied to DMM torrent results. This creates a priority issue when multiple quality preferences are combined in one regex pattern.
Example scenario:
- Regex:
(1080p.*BluRay.*x264)|(720p.*WEB-DL)|(720p|1080p).* - DMM returns torrents in this order:
- "Movie.2024.1080p.WEB-DL.x264"
- "Movie.2024.1080p.BluRay.x264"
- The current system matches the first torrent (WEB-DL) because it satisfies
(720p|1080p).*, even though the BluRay version would be preferred
Proposed Solution
Implement multiple regex filters with priority ranking that are processed in order against the DMM results, similar to how Starr applications handle quality profiles.
Suggested Implementation
Replace the single TORRENT_FILTER_REGEX with an array of regex patterns:
TORRENT_FILTER_REGEX_1=1080p.*BluRay.*x264
TORRENT_FILTER_REGEX_2=720p.*WEB-DL
TORRENT_FILTER_REGEX_3=(720p|1080p).*Processing Logic:
- Apply
TORRENT_FILTER_REGEX_1to all DMM results - if match found, use it - If no match, apply
TORRENT_FILTER_REGEX_2- if match found, use it - Continue until a match is found or all filters exhausted
Benefits
- True priority: Higher quality releases are selected when available
- Flexible fallbacks: Still gets content when preferred quality unavailable
- Backward compatibility: Could default to current single regex behavior
- Better success rates: More granular control over quality selection
This would ensure that when DMM returns results, the highest priority matching torrent is always selected first, regardless of the order DMM presents them.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or requestgood first issueGood for newcomersGood for newcomers