Lightjohn / CbXManager

Easily create/extract cbz or cbr files with a python script, can split and adapt to manga read order
35 stars 7 forks source link

not working on windows #3

Closed migube closed 6 hours ago

migube commented 1 day ago

hoi due to \ /difference , a cbz with a folder with files fails under python under windows

will try linux tomorrow

Lightjohn commented 1 day ago

Bit strange, if I remember well there should be no / in my code. Had a quick look and found one.

Can you tell me how did you launched the scripts? Thanks

migube commented 19 hours ago

hoi

python cbxmanager.py ccc.cbz -v

looking at the error, maybe it's a double \ issue (see below) not the /

the cbz file contains one comicinfo.xml then one folder, and under the folder the image files

It creates the folder ccc , that's ok then File "C:\Users\chris\Downloads\CbXManager-master\CbXManager-master\cbxmanager.py", line 77, in parse_cbz with open(path_out + self.sep + name, "wb") as tmp_img: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ OSError: [Errno 22] Invalid argument: "ccc\04 - Un txxx/"

tx!

Lightjohn commented 8 hours ago

Indeed the folder inside is causing an issue! Looking at it!

Lightjohn commented 8 hours ago

A fix has been pushed, should solve your issue :)

migube commented 8 hours ago

that was quick :) indeed it does! tx