🔧 Building out full uncompression integration

This commit is contained in:
2022-04-28 08:17:41 -07:00
parent ee5ba474ee
commit e243d7c795

View File

@@ -264,17 +264,14 @@ export const extractComicArchive = (path: string) => async (dispatch) => {
map(extractedComicBookArchive.data, (page) => {
const pathItems = page.filePath.split("/");
const folderName = pathItems[pathItems.length - 2];
const imagePath = encodeURI(
`${LIBRARY_SERVICE_HOST}/userdata/expanded/` +
folderName +
`/` +
page.name +
page.extension,
`${LIBRARY_SERVICE_HOST}/${page.containedIn}` +
`/` +
page.name +
page.extension,
);
comicBookPages.push(imagePath);
});
console.log(comicBookPages);
dispatch({
type: IMS_COMIC_BOOK_ARCHIVE_EXTRACTION_SUCCESS,
extractedComicBookArchive: comicBookPages,