forked from LiveCarta/BookConverter
epub_presets
This commit is contained in:
@@ -8,7 +8,7 @@ from src.util.helpers import BookLogger
|
|||||||
|
|
||||||
|
|
||||||
class HtmlEpubProcessor:
|
class HtmlEpubProcessor:
|
||||||
def __init__(self, preset_path: str = "presets/presets.json", logger: BookLogger = None):
|
def __init__(self, preset_path: str = "presets/epub_presets.json", logger: BookLogger = None):
|
||||||
self.preset = json.load(open(preset_path))
|
self.preset = json.load(open(preset_path))
|
||||||
self.logger = logger
|
self.logger = logger
|
||||||
self.name2action = {
|
self.name2action = {
|
||||||
@@ -173,8 +173,8 @@ class HtmlEpubProcessor:
|
|||||||
# wrap subtag with items
|
# wrap subtag with items
|
||||||
kwargs["tag"].append(tag_to_insert)
|
kwargs["tag"].append(tag_to_insert)
|
||||||
|
|
||||||
def _process_tags(self,
|
@staticmethod
|
||||||
chapter_tag: BeautifulSoup,
|
def _process_tags(chapter_tag: BeautifulSoup,
|
||||||
rules: List[Dict[str, Union[List[str], str, Dict[str, Union[List[Dict[str, str]], int, str]]]]],
|
rules: List[Dict[str, Union[List[str], str, Dict[str, Union[List[Dict[str, str]], int, str]]]]],
|
||||||
action):
|
action):
|
||||||
"""
|
"""
|
||||||
|
|||||||
Reference in New Issue
Block a user