🏝 Added CALIBRE_EBOOK_META_PATH to pick up the correct path to ebook-meta
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user