Skip to content

Feature Request: Multiple Torrent Filter Regex with Priority Ranking #39

@jveko

Description

@jveko

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:
    1. "Movie.2024.1080p.WEB-DL.x264"
    2. "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:

  1. Apply TORRENT_FILTER_REGEX_1 to all DMM results - if match found, use it
  2. If no match, apply TORRENT_FILTER_REGEX_2 - if match found, use it
  3. 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.

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions