🪛 Fixes to the wiring between extract archive and UI
This commit is contained in:
@@ -9,18 +9,23 @@ import _ from "lodash";
|
||||
export const greet = async (
|
||||
path: string,
|
||||
): Promise<IExtractedComicBookCoverFile[] | unknown> => {
|
||||
console.log(path);
|
||||
const targetOptions = {
|
||||
sourceFolder: path,
|
||||
extractTarget: "all",
|
||||
targetExtractionFolder: "./userdata/expanded",
|
||||
};
|
||||
|
||||
const pagingConfig = {
|
||||
pageLimit: 25,
|
||||
page: 1,
|
||||
};
|
||||
|
||||
const fileObjects = await walkFolder("./comics");
|
||||
_.map(fileObjects, async (fileObject) => {
|
||||
if (SUPPORTED_COMIC_ARCHIVES.includes(fileObject.extension)) {
|
||||
console.log({ ...targetOptions, folderDetails: fileObject });
|
||||
await extractCoverFromComicBookArchive({
|
||||
...targetOptions,
|
||||
paginationOptions: pagingConfig,
|
||||
folderDetails: fileObject,
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user