From 668f1a1a70505632958f574fd06a422c7df2bdcf Mon Sep 17 00:00:00 2001 From: Rishi Ghan Date: Thu, 21 Oct 2021 07:28:09 -0700 Subject: [PATCH] =?UTF-8?q?=F0=9F=8F=9D=20Added=20CALIBRE=5FEBOOK=5FMETA?= =?UTF-8?q?=5FPATH=20to=20pick=20up=20the=20correct=20path=20to=20ebook-me?= =?UTF-8?q?ta?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- utils/uncompression.utils.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/utils/uncompression.utils.ts b/utils/uncompression.utils.ts index daadef5..09e5842 100644 --- a/utils/uncompression.utils.ts +++ b/utils/uncompression.utils.ts @@ -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,