Merge branch 'master' of https://github.com/rishighan/threetwo-import-service
Signed-off-by: Rishi Ghan <rishi.ghan@gmail.com> # Conflicts: # package-lock.json # package.json # yarn.lock
This commit is contained in:
@@ -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";
|
||||
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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";
|
||||
|
||||
|
||||
Reference in New Issue
Block a user