Quality profiles
A quality profile is what the acquisition searcher judges releases against:
a ladder of acceptable qualities, a seeder floor, and a list of terms that
score or refuse a release by its name. Profiles are managed through
AcquisitionService under xmb.api.v1 — ListQualityProfiles,
PutQualityProfile and DeleteQualityProfile — and a series uses the
profile named on it, or its library's default.
The ladder
rungs is an ordered list, best first. Each rung is a resolution and an
optional source (WEB-DL, Blu-ray, HDTV, remux, …), whether it is
allowed, and an optional size ceiling in bytes per hour of runtime,
so a 22-minute episode and a 90-minute film are held to the same standard
without sharing one number. A release matches the first rung that describes
its quality; one that matches no rung, or a rung that is not allowed, is
refused with that reason. Excluded rungs are rows rather than absences, so
what has been ruled out stays visible.
A rung can also carry a size floor per hour of runtime
(floor_bytes_per_hour), the ceiling's mirror: a "1080p" file at 200 MB an
hour is a re-encode wearing the label, and is refused as below_min_size.
Both per-hour limits are scaled by what the release holds — a season pack is
judged against the whole season's runtime — and neither applies when the
catalogue has no runtime for the title.
max_size_bytes on the profile is an absolute cap on any single release,
independent of runtime, and so the one size gate that still applies when the
runtime is unknown. Absent means no cap.
min_seeders is a gate below which a release is refused outright. A tracker
registered on a grabber can raise the floor for its own results; it can
never lower this one.
Terms
terms refine the choice within a rung and never across rungs: no score
lifts a 720p above a 1080p. Each term is matched against the release name
and either adds its score or, when rejected is set, refuses the release
whatever else it carries.
A term matches as a whole token, case-insensitively. Wherever the term's own edge is a letter or digit, the release name must have a boundary there — the start or end of the name, or a character that is not a letter or digit. So:
| Term | Matches | Does not match |
|---|---|---|
TS | Movie.2024.TS.x264 | …H.264-Kitsune, HDTS |
-NTb | WEB-DL-NTb | NTbX |
HDR10+ | 2160p.HDR10+.WEB | HDR10 |
x265 | x265-MeGusta | 0x2650 |
HDR | DV.HDR.WEB | HDR10 — write /hdr/i for that |
A term written between slashes — /pattern/ or /pattern/i — is a
regular expression (RE2 syntax, always case-insensitive) evaluated against
the raw release name: /hdr10\+?/i for either HDR10 form, /ntb|flux/i
for a group alternation. PutQualityProfile refuses a profile whose regular
expression does not compile, with INVALID_ARGUMENT and the compiler's
reason, rather than saving a term that would apply as something else.
Terms are shown back exactly as typed: -NTb stays -NTb.
What a refusal records
Every release the searcher turns down is recorded with a reason — the rung it fell on, the term that refused it, the season or episode it does not hold, the programme it turned out to be, a bar from an earlier failure — and the release list on a series' acquisition page shows them, so "why has this not downloaded" has an answer that names the rule that decided it.
A refusal is either a verdict about the release or a doubt the next
pass may resolve, and ReleaseCandidate.rejection_temporary says which.
Too few seeders and a season that is still airing are doubts: the searcher
retries them shortly. Everything else — a rejected term, the wrong show, the
wrong season, a size over the ceiling, a bar — is final for that release,
and a list where every row carries the same permanent reason means a
profile rule or a gate is turning down everything the trackers offer.