From a61158cbfd74d47a3f3af23075cc7a82588623c5 Mon Sep 17 00:00:00 2001 From: quantran-novobi Date: Tue, 7 Dec 2021 23:38:00 +0700 Subject: [PATCH] Version 1.0.0 --- epub-translator.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/epub-translator.py b/epub-translator.py index 541a120..797b7b6 100644 --- a/epub-translator.py +++ b/epub-translator.py @@ -367,14 +367,14 @@ def start(self, file_path): if args.dict: translation_dict_file_path = args.dict.replace( - '&', '').replace('\'', '').strip() + '&', '').replace('\'', '').replace('\"', '').strip() engine.translation_dict_file_path = os.path.abspath( translation_dict_file_path) if not engine.get_translation_dict_contents(): sys.exit() epub_file_path = args.epub_file_path.replace( - '&', '').replace('\'', '').strip() + '&', '').replace('\'', '').replace('\"', '').strip() epub_abs_file_path = os.path.abspath(epub_file_path) if os.path.isfile(epub_abs_file_path) and epub_abs_file_path.endswith('.epub'): engine.start(epub_abs_file_path)