mirror of
https://github.com/yihong0618/bilingual_book_maker.git
synced 2025-06-05 19:15:34 +00:00
not write if batch mode
This commit is contained in:
parent
e6dc7f8824
commit
e4a5c54ceb
@ -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:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user