forked from LiveCarta/BookConverter
Formatting
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
from src.book_solver import BookSolver
|
||||
from src.epub_converter.epub_converter import EpubConverter
|
||||
|
||||
|
||||
class EpubBook(BookSolver):
|
||||
"""Class of .epub type book - child of BookSolver"""
|
||||
|
||||
@@ -10,10 +11,19 @@ class EpubBook(BookSolver):
|
||||
|
||||
def get_converted_book(self):
|
||||
"""
|
||||
1. Convert epub to html
|
||||
2. Parse from line structure to nested structure
|
||||
Function
|
||||
Steps
|
||||
----------
|
||||
1. Converts .epub to .html
|
||||
2. Parses from line structure to nested structure
|
||||
|
||||
Returns
|
||||
----------
|
||||
content_dict
|
||||
json for LiveCarta platform
|
||||
|
||||
"""
|
||||
json_converter = EpubConverter(self.file_path, access=self.access, logger=self.logger_object)
|
||||
json_converter = EpubConverter(
|
||||
self.file_path, access=self.access, logger=self.logger_object)
|
||||
content_dict = json_converter.convert_to_dict()
|
||||
self.status_wrapper.set_generating()
|
||||
return content_dict
|
||||
return content_dict
|
||||
|
||||
Reference in New Issue
Block a user