Skip to main content

Module normalize

Module normalize 

Source

Functions§

clean_series_title
Clean a series title: replace dots/underscores with spaces, trim. Mirrors Sonarr’s TrimEnd(‘-’) + TrimEnd(’ ’) post-processing.
digit_boundary_ok
Check that a match at [start..end) is not adjacent to digits. This replaces C# (?<!\d+) and (?!\d+) lookarounds.
preprocess_title
Parser.cs:716-718 — full pre-processing before the regex cascade.
remove_file_extension
Parser.cs:968-982 — strip media file extensions.
validate_before_parsing
Parser.cs:1262-1290 — reject junk titles before the regex cascade.