🤼‍♀️ Support for CV match

This commit is contained in:
2021-08-06 13:44:00 -07:00
parent cf65b36157
commit 9a311d707f
4 changed files with 39 additions and 26 deletions

View File

@@ -85,6 +85,7 @@ export const extractCoverFromFile = async (
} catch (error) {
logger.error(`${error}: Couldn't create directory.`);
}
// extract the cover
let result: string;
const targetCoverImageFilePath = path.resolve(constructedPaths.targetPath + "/" + walkedFolder.name + "_cover.jpg")
result = await calibre.run(
@@ -203,6 +204,7 @@ export const unrar = async (
mode: 0o2775,
};
try {
// read the file into a buffer
const fileBuffer = await readFile(
paths.inputFilePath
).catch((err) => console.error("Failed to read file", err));