Target Redump DATs/catalog instead of No-Intro
This commit is contained in:
+1
-1
@@ -1,6 +1,6 @@
|
||||
"""Parser for clrmamepro (.dat) files.
|
||||
|
||||
Handles the No-Intro / Redump text DAT format::
|
||||
Handles the clrmamepro text DAT format used by Redump and No-Intro::
|
||||
|
||||
clrmamepro (
|
||||
name "Sony - PlayStation Portable"
|
||||
|
||||
+2
-2
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user