diff --git a/consumer.py b/consumer.py index b5fc79a..c11b7fb 100644 --- a/consumer.py +++ b/consumer.py @@ -58,8 +58,8 @@ def callback(ch, method, properties, body: bytes, main_logger: logging.Logger, l "params": book_params } - thread = Thread(target=convert_book, kwargs=params) - # thread = Thread(target=local_convert_book, kwargs=params) + # thread = Thread(target=convert_book, kwargs=params) + thread = Thread(target=local_convert_book, kwargs=params) thread.start() logging.log(logging.INFO, f"Active threads: {active_count()}.") # print(f"Active threads: {active_count()}.") diff --git a/src/book_solver.py b/src/book_solver.py index 1e6ffe8..2d4db6b 100644 --- a/src/book_solver.py +++ b/src/book_solver.py @@ -172,7 +172,7 @@ class BookSolver: self.status_wrapper.set_processing() content_dict: Dict[str, List[Dict[Union[str, List]]]] = self.get_converted_book() [os.remove(path) for path in [self.book_path, - self.preset_path + # self.preset_path ]] self.book_logger.log("Beginning of processing .json output.") self.status_wrapper.set_generating() diff --git a/src/epub_converter/epub_solver.py b/src/epub_converter/epub_solver.py index fffca40..b413e0c 100644 --- a/src/epub_converter/epub_solver.py +++ b/src/epub_converter/epub_solver.py @@ -52,7 +52,7 @@ class EpubBook(BookSolver): if __name__ == "__main__": - epub_file_path = f"../../books/epub/9781260455076.epub" + epub_file_path = f"../../books/epub/9781264269044.epub" logger_object = BookLogger(name="epub") logger_object.configure_book_logger(book_id=epub_file_path.split("/")[-1]) diff --git a/src/livecarta_config.py b/src/livecarta_config.py index e9a896f..d067cd1 100644 --- a/src/livecarta_config.py +++ b/src/livecarta_config.py @@ -33,9 +33,9 @@ class LiveCartaConfig: "background-color", "background"], r"(^h[1-9]$)": ["list-style-type", "border-bottom", "border-top", "border-left", "border-right", "background-color", "background"], - "^li$": ["text-align", "list-style-type"], + "^li$": ["text-align", "list-style-type", "value"], "^ul$": ["list-style-type"], - "^ol$": ["list-style-type"] + "^ol$": ["list-style-type", "reversed", "start"] } # Dictionary mapping CSS style attribute names to names that should replace them