Joshuajrodrigues / manga2epub4kindle

A very light and simple terminal app in the making to convert all cbr manga to epub suitable for kindle devices.
https://www.npmjs.com/package/manga2epub4kindle
GNU General Public License v3.0
22 stars 2 forks source link

problem in extract files #2

Open ghost opened 1 year ago

ghost commented 1 year ago

⠋ Extracting files...Unhandled rejection Error: invalid signature: 0x21726152 at /usr/lib/node_modules/manga2epub4kindle/node_modules/unzipper/lib/parse.js:66:26 at tryCatcher (/usr/lib/node_modules/manga2epub4kindle/node_modules/bluebird/js/release/util.js:16:23) at Promise._settlePromiseFromHandler (/usr/lib/node_modules/manga2epub4kindle/node_modules/bluebird/js/release/promise.js:510:31) at Promise._settlePromise (/usr/lib/node_modules/manga2epub4kindle/node_modules/bluebird/js/release/promise.js:567:18) at Promise._settlePromise0 (/usr/lib/node_modules/manga2epub4kindle/node_modules/bluebird/js/release/promise.js:612:10) at Promise._settlePromises (/usr/lib/node_modules/manga2epub4kindle/node_modules/bluebird/js/release/promise.js:691:18) at Async._drainQueue (/usr/lib/node_modules/manga2epub4kindle/node_modules/bluebird/js/release/async.js:133:16) at Async._drainQueues (/usr/lib/node_modules/manga2epub4kindle/node_modules/bluebird/js/release/async.js:143:10) at Async.drainQueues [as _onImmediate] (/usr/lib/node_modules/manga2epub4kindle/node_modules/bluebird/js/release/async.js:17:14) at process.processImmediate (node:internal/timers:471:21)

⠧ Extracting files...

hi there!!! i have this issue in the app... i use arch linux

thank for all!!!

Joshuajrodrigues commented 1 year ago

Heyy, let me see what i can do. Can you provide me some more info on how this occured ?

Joshuajrodrigues commented 1 year ago

Also what type of file do you have ? Is it a cbz or cbr ?

ghost commented 1 year ago

thank you for the reply.....

https://imgur.com/a/KXbuPnq

Here is the problem in 2 different computers ... in my case I install the program with NPM on a computer with Arch Linux and run the program (Screenshot 2).

in my case i use cbr files.

Could it be that the program depends on Kindlegen?

Joshuajrodrigues commented 1 year ago

Na it doesnt need kindle gen. Its the unzipper. Node seems to have pretty abysmal solutions for an extracter. Ill look into it

ghost commented 1 year ago

Thank you very much for responding so quickly...

I participate with a group of friends to convert and share mangas among us, and when I saw your solution we love it.

Thank you very much for creating and sharing it !!!

Joshuajrodrigues commented 1 year ago

Say could you do me a favor and extract your cbr/cbz file manually?

Incase you need instructions basically :

Rename your cbz/cbr file with the .zip extention

So if you have jojo.cbz rename it to jojo.zip.

Then open the zip folder. Or extract it to a new folder and let me know whats inside. Is it a collection of images, is there any file in there thats not an image by any chance ?

Reason being i can't replicate it easily. Tho the issue does exist on some system. Thinking of patching it manually.

Joshuajrodrigues commented 1 year ago

another thing, once you rename it run unzip -t file.zip, file .zip being your manga name so jojo.zip. this will check integrity of your zip file

ghost commented 1 year ago

the output to unzip -t file.zip and the cbr file unzipet. https://imgur.com/a/ClFNMwy

Joshuajrodrigues commented 1 year ago

nice, cbr file unziped, the files inside are they zip files again or just folders ?

ghost commented 1 year ago

just folders

Joshuajrodrigues commented 1 year ago

alright so here's the issue, Usually cbr/cbz files are just zip files that have images in them. I did encounter one bleach volume that had a zip file inside a zip file, manga2epub4kindle. can handle those too. Folders in zip isnt handled, but im willing to now, tho itll take a bit of time. But mostly within this week.

In the mean time if your in a hurry all you'll mostly have to do is open those folders copy all images out to parent delete the folders after and then rename back to cbr cbz. Ik its awful lot to do.

Also would be really helpful if you could link me to where you got your jojo files from. I can use it for my testing and also would like to get into jojoj

ghost commented 1 year ago

here is the link https://www.mar9celo3.com/2019/05/Descargar-JoJo-Parte-8-JoJolion.html?m=1

thanks for the reply and the time for fix this... i can wait for the news.

h0l0cr0n commented 1 year ago

Untitled

Hey guys, am i missing something. trying to get this to work :) tried other cbz's too. the cbz files only have png and jpg inside of them

what you made here is very cool

Joshuajrodrigues commented 1 year ago

Untitled

Hey guys, am i missing something. trying to get this to work :) tried other cbz's too. the cbz files only have png and jpg inside of them

what you made here is very cool

Can you try with just 1 file ? Im currently in the process of rebuilding this since most of its dependencies are depreciated. Which is causing issues. Mostly its the unzip that either fails or corrupts the files.

Also if possible do share me a link to a sample of what you're trying to convert

Joshuajrodrigues commented 1 year ago

@h0l0cr0n

Use node 16, seems like this script breaks in node 18. Ill have to check it out, but it works fine on 16

h0l0cr0n commented 1 year ago

thnx m8. :)

h0l0cr0n commented 1 year ago

Tried it and it works, only amazon screwing up at their side. caus they keep inserinting white pages (send to kindle) (-.- sometimes even 3 in a row), every 3/5 pages or so. or do you use anything else to import to kindle scribe? its such a good device but i wish you could just drag and drop your epubs on it. (when uploaded the aszw3 file to kalibre, it shows no blank pages but on scribe it does x_X)

h0l0cr0n commented 1 year ago

32 33 34 35

Like this =(