🏝 Added CALIBRE_EBOOK_META_PATH to pick up the correct path to ebook-meta

This commit is contained in:
2021-10-21 07:28:09 -07:00
parent 5f73937768
commit 668f1a1a70

View File

@@ -88,8 +88,9 @@ export const extractCoverFromFile = async (
walkedFolder.name +
"_cover.jpg"
);
const ebookMetaPath = `${process.env.CALIBRE_EBOOK_META_PATH}` || `ebook-meta`;
result = await calibre.run(
`ebook-meta`,
`${ebookMetaPath}`,
[path.resolve(constructedPaths.inputFilePath)],
{
getCover: targetCoverImageFilePath,