Skip to main content

Module regexes

Module regexes 

Source
Expand description

Source-detection regex constants ported from QualityParser.cs.

These mirror the C# private static readonly Regex declarations at lines 17 to 66 of QualityParser.cs. The Rust regex crate is RE2-based and does not support backreferences or lookarounds; where a C# pattern uses either, the constant here is a relaxed superset and a sibling helper function applies the missing constraint in code post-match. Each such case is documented inline above the affected Lazy<Regex> declaration.

Statics§

ALTERNATIVE_RESOLUTION_REGEX
Alternative resolution detector for releases that omit a numeric resolution token. Ported from QualityParser.cs:53-54.
ANIME_BLURAY_REGEX
Anime-Bluray detector. Ported from QualityParser.cs:61.
ANIME_WEBDL_REGEX
Anime-WEB-DL detector. Ported from QualityParser.cs:62.
CODEC_REGEX
Codec detector. Ported from QualityParser.cs:56-57.
HIGH_DEF_PDTV_REGEX
hr-ws (high-def PDTV) detector. Ported from QualityParser.cs:64. Case-insensitive.
MPEG2_REGEX
MPEG2 / MPEG-2 / MPEG_2 / MPEG.2 / MPEG 2 detector. Ported from QualityParser.cs:35. Note: the C# pattern is case-sensitive (no RegexOptions.IgnoreCase), so we omit the (?i) flag here.
OTHER_SOURCE_REGEX
HD-TV / SD-TV alternative-form detector. Ported from QualityParser.cs:59. Named groups: hdtv, sdtv. Case-insensitive.
PROPER_REGEX
PROPER detector. Ported from QualityParser.cs:37-38. Named group: proper. Case-insensitive.
RAW_HD_REGEX
RawHD / Raw-HD / Raw_HD / Raw.HD / Raw HD detector. Ported from QualityParser.cs:32-33.
REAL_REGEX
REAL detector. Ported from QualityParser.cs:46-47.
REMUX_REGEX
Remux detector. Ported from QualityParser.cs:66.
REPACK_REGEX
REPACK / RERIP detector. Ported from QualityParser.cs:40-41. Matches repack, repack1, repack2, …, rerip, rerip1, rerip2, etc. Named group: repack. Case-insensitive.
RESOLUTION_REGEX
Resolution detector. Ported from QualityParser.cs:49-50.
SOURCE_REGEX
Source-class detector. Ported from QualityParser.cs:17-30.
VERSION_REGEX
Explicit version-marker detector. Ported from QualityParser.cs:43-44.