mirror of
https://github.com/RicterZ/nhentai.git
synced 2025-04-20 11:01:17 +02:00
fix #331
This commit is contained in:
parent
ec608cc741
commit
f97469259d
@ -226,7 +226,7 @@ def generate_pdf(output_dir='.', doujinshi_obj=None, rm_origin_dir=False, move_t
|
|||||||
full_path_list = (
|
full_path_list = (
|
||||||
[os.path.join(doujinshi_dir, image) for image in file_list]
|
[os.path.join(doujinshi_dir, image) for image in file_list]
|
||||||
)
|
)
|
||||||
pdf_f.write(img2pdf.convert(full_path_list))
|
pdf_f.write(img2pdf.convert(full_path_list, rotation=img2pdf.Rotation.ifvalid))
|
||||||
|
|
||||||
if rm_origin_dir:
|
if rm_origin_dir:
|
||||||
shutil.rmtree(doujinshi_dir, ignore_errors=True)
|
shutil.rmtree(doujinshi_dir, ignore_errors=True)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user