add normalize, add a related name search

This commit is contained in:
Alexandra
2025-05-29 10:15:39 -06:00
parent c231f7ffc9
commit 6c2b3c49ef
2 changed files with 2 additions and 2 deletions

View File

@@ -13,5 +13,5 @@
["bros", "brothers", "bros."],
["&", "and"],
["+", "plus"],
[".hack", "dothack"]
[".hack", "dothack", "dot hack"]
]

View File

@@ -121,7 +121,7 @@ export default class MetadataSearch {
});
for (let x in games) {
let game = games[x];
let metadata = await Metadata.searchByText(game.filename, game.category);
let metadata = await Metadata.searchByText(this.normalizeName(game.filename), game.category);
if (metadata) {
await game.setDetails(metadata);
await metadata.addFile(game);