mirror of
https://github.com/alexankitty/Myrient-Search-Engine.git
synced 2026-01-15 08:23:18 -03:00
add normalize, add a related name search
This commit is contained in:
@@ -13,5 +13,5 @@
|
||||
["bros", "brothers", "bros."],
|
||||
["&", "and"],
|
||||
["+", "plus"],
|
||||
[".hack", "dothack"]
|
||||
[".hack", "dothack", "dot hack"]
|
||||
]
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user