🔧 Building out full uncompression integration
This commit is contained in:
@@ -264,17 +264,14 @@ export const extractComicArchive = (path: string) => async (dispatch) => {
|
|||||||
map(extractedComicBookArchive.data, (page) => {
|
map(extractedComicBookArchive.data, (page) => {
|
||||||
const pathItems = page.filePath.split("/");
|
const pathItems = page.filePath.split("/");
|
||||||
const folderName = pathItems[pathItems.length - 2];
|
const folderName = pathItems[pathItems.length - 2];
|
||||||
|
|
||||||
const imagePath = encodeURI(
|
const imagePath = encodeURI(
|
||||||
`${LIBRARY_SERVICE_HOST}/userdata/expanded/` +
|
`${LIBRARY_SERVICE_HOST}/${page.containedIn}` +
|
||||||
folderName +
|
`/` +
|
||||||
`/` +
|
page.name +
|
||||||
page.name +
|
page.extension,
|
||||||
page.extension,
|
|
||||||
);
|
);
|
||||||
comicBookPages.push(imagePath);
|
comicBookPages.push(imagePath);
|
||||||
});
|
});
|
||||||
console.log(comicBookPages);
|
|
||||||
dispatch({
|
dispatch({
|
||||||
type: IMS_COMIC_BOOK_ARCHIVE_EXTRACTION_SUCCESS,
|
type: IMS_COMIC_BOOK_ARCHIVE_EXTRACTION_SUCCESS,
|
||||||
extractedComicBookArchive: comicBookPages,
|
extractedComicBookArchive: comicBookPages,
|
||||||
|
|||||||
Reference in New Issue
Block a user