Signed-off-by: Rishi Ghan <rishi.ghan@gmail.com>

# Conflicts:
#	package-lock.json
#	package.json
#	yarn.lock
This commit is contained in:
2021-09-03 12:13:07 -07:00
23 changed files with 2985 additions and 8520 deletions

View File

@@ -7,7 +7,7 @@ import {
IExtractedComicBookCoverFile,
IExtractionOptions,
IFolderData,
} from "../interfaces/folder.interface";
} from "threetwo-ui-typings";
import { logger } from "./logger.utils";
import { includes, remove, indexOf } from "lodash";

View File

@@ -89,7 +89,7 @@ export const extractCoverFromFile = async (
let result: string;
const targetCoverImageFilePath = path.resolve(constructedPaths.targetPath + "/" + walkedFolder.name + "_cover.jpg")
result = await calibre.run(
"ebook-meta",
`/opt/calibre/ebook-meta`,
[path.resolve(constructedPaths.inputFilePath)],
{
getCover: targetCoverImageFilePath,

View File

@@ -4,7 +4,7 @@ import {
IExtractedComicBookCoverFile,
IExtractionOptions,
IFolderData,
} from "../interfaces/folder.interface";
} from "threetwo-ui-typings";
const Validator = require("fastest-validator");
import { logger } from "./logger.utils";