not write if batch mode

This commit is contained in:
mkXultra 2024-08-18 18:53:33 +09:00
parent e6dc7f8824
commit e4a5c54ceb

View File

@ -547,7 +547,6 @@ class EPUBBookLoader(BaseBookLoader):
self.translate_model.batch() self.translate_model.batch()
else: else:
epub.write_epub(f"{name}_bilingual.epub", new_book, {}) epub.write_epub(f"{name}_bilingual.epub", new_book, {})
epub.write_epub(f"{name}_bilingual.epub", new_book, {})
if self.accumulated_num == 1: if self.accumulated_num == 1:
pbar.close() pbar.close()
except (KeyboardInterrupt, Exception) as e: except (KeyboardInterrupt, Exception) as e: