Closed normalizedwater546 closed 2 months ago
Some problems still exists:
--pdf --cbz
option specified, only generate cbz
file.--pdf
option.start_download
method is coupled with too many options such as regenerate_cbz
, file_type
, maybe optimization is needed
--meta --cbz
with a duplicatedcbz
file will result in this error.Traceback (most recent call last): File "\?\A:\nhentai.venv\Scripts\nhentai-script.py", line 33, in
sys.exit(load_entry_point('nhentai==0.5.7', 'console_scripts', 'nhentai')())
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "A:\nhentai.venv\Lib\site-packages\nhentai-0.5.7-py3.12.egg\nhentai\command.py", line 114, in main
generate_pdf(options.output_dir, doujinshi, options.rm_origin_dir, options.move_to_folder)
File "A:\nhentai.venv\Lib\site-packages\nhentai-0.5.7-py3.12.egg\nhentai\utils.py", line 243, in generate_pdf
pdf_f.write(img2pdf.convert(full_path_list, rotation=img2pdf.Rotation.ifvalid))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "A:\nhentai.venv\Lib\site-packages\img2pdf.py", line 2733, in convert
) in read_images(
^^^^^^^^^^^^
File "A:\nhentai.venv\Lib\site-packages\img2pdf.py", line 1829, in read_images
raise ImageOpenError(
img2pdf.ImageOpenError: cannot read input image (not jpeg2000). PIL: error reading image: cannot identify image file <_io.BytesIO object at 0x0000026F22120720>