Target Redump DATs/catalog instead of No-Intro

This commit is contained in:
2026-09-07 16:20:39 -04:00
parent 128b62e5b8
commit 922c01d17c
3 changed files with 9 additions and 9 deletions
+2 -2
View File
@@ -16,7 +16,7 @@ _ARTICLE_RE = re.compile(r"^(.+),\s*(the|a|an)(?:\s+-\s+(.+))?$")
def _normalize(name):
name = name.lower()
name = re.sub(r"\.(iso|cso|pbp|img|bin)$", "", name) # strip disc extension
name = re.sub(r"^\s*\d+\s*-\s*", "", name) # leading No-Intro catalog number
name = re.sub(r"^\s*\d+\s*-\s*", "", name) # legacy No-Intro "#### - Name" catalog number
name = re.sub(r"\([^)]*\)", " ", name) # parenthetical tags
name = " ".join(name.split())
m = _ARTICLE_RE.match(name)
@@ -141,7 +141,7 @@ def match(conn, record):
if row is not None:
return f"hash:{field}", dict(row)
# 2. Local supplement catalog (dumps not present in No-Intro).
# 2. Local supplement catalog (dumps not present in the DATs).
for entry in _load_supplement():
for field in ("crc32", "sha1", "md5"):
value = entry.get(field)