🪢 Rewired the download -> import to lib workflow

This commit is contained in:
2022-05-11 10:57:30 -07:00
parent cf75e8f9ff
commit 0b195d6ff3
4 changed files with 9 additions and 20 deletions

View File

@@ -31,7 +31,7 @@ SOFTWARE.
* Initial: 2021/05/04 Rishi Ghan
*/
import { createReadStream, createWriteStream, existsSync } from "fs";
import { createReadStream, createWriteStream, existsSync, statSync } from "fs";
import { isEmpty, isNil, isUndefined, remove, each, map } from "lodash";
import * as p7zip from "p7zip-threetwo";
import path from "path";
@@ -160,6 +160,7 @@ export const extractComicInfoXMLFromRar = async (
name: fileNameWithoutExtension,
extension,
containedIn: targetDirectory,
fileSize: fse.statSync(filePath).size,
cover: {
filePath: path.relative(
process.cwd(),
@@ -284,6 +285,7 @@ export const extractComicInfoXMLFromZip = async (
name: fileNameWithoutExtension,
extension,
containedIn: targetDirectory,
fileSize: fse.statSync(filePath).size,
cover: {
filePath: path.relative(
process.cwd(),