Add new settings

This commit is contained in:
2024-03-08 22:38:18 +08:00
parent ccb19875ca
commit c0568543a5
5 changed files with 43 additions and 1 deletions

View File

@@ -100,9 +100,11 @@ def export_book(ncw: NovelCiwei, db: CwmDb, cfg: Config, bn: BooksNew,
if cfg.export_epub:
epub.add_chapter(chapter, content, division_name)
count += 1
else:
elif cfg.export_nodownload:
if cfg.export_txt:
txt.write(f"{chapter_index}{chapter_title} (未下载)\n\n") # noqa: E501
if cfg.export_epub:
epub.add_nodownload_chapter(chapter, division_name)
chapter_index += 1
print(f'Exported {count} chapters.')
finally: