🔧 Added an endpoint for searching issues via Elastic

This commit is contained in:
2022-03-01 23:18:37 -08:00
parent c67328c4d6
commit 07e02cc90a
3 changed files with 51 additions and 10 deletions

View File

@@ -190,7 +190,9 @@ export const extractComicInfoXMLFromRar = async (
data: fileBuffer,
});
const extracted = extractor.extract({ files: ["ComicInfo.xml"] });
const extracted = extractor.extract({
files: ({ name }) => name.toLowerCase() === 'comicinfo.xml',
});
const files = [...extracted.files]; //load the files
if (!isUndefined(files[0])) {
console.log(