mirror of
https://github.com/alexankitty/Myrient-Search-Engine.git
synced 2026-01-15 16:33:15 -03:00
fix name doubling
This commit is contained in:
@@ -84,6 +84,9 @@ function findCategory(str, catList){
|
||||
foundCat = "Others"
|
||||
}
|
||||
}
|
||||
if(foundSubCat.includes(foundCat)){
|
||||
foundCat = ''
|
||||
}
|
||||
return `${foundCat} ${foundSubCat}`.trim()
|
||||
}
|
||||
|
||||
|
||||
@@ -50,9 +50,9 @@ async function getFilesJob() {
|
||||
console.log("Updating the file list.");
|
||||
fileList = await getAllFiles(categoryList);
|
||||
await FileHandler.saveJsonFile(fileListPath, fileList);
|
||||
fileCount = fileList.length;
|
||||
if (typeof search !== "undefined") {
|
||||
await search.createIndex(fileList, searchFields); //recreate the search index
|
||||
fileCount = fileList.length;
|
||||
//fileList = []
|
||||
}
|
||||
crawlTime = await FileHandler.fileTime(fileListPath);
|
||||
|
||||
Reference in New Issue
Block a user