From e243d7c7954b38be4e2431205f925116e579ec52 Mon Sep 17 00:00:00 2001 From: Rishi Ghan Date: Thu, 28 Apr 2022 08:17:41 -0700 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A7=20Building=20out=20full=20uncompre?= =?UTF-8?q?ssion=20integration?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/client/actions/fileops.actions.tsx | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/src/client/actions/fileops.actions.tsx b/src/client/actions/fileops.actions.tsx index 5e84a2e..c6e142a 100644 --- a/src/client/actions/fileops.actions.tsx +++ b/src/client/actions/fileops.actions.tsx @@ -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,