-
Couldn't load subscription status.
- Fork 220
Open
Description
If the table of contents does not have page numbers, you need to use "def process_toc_no_page_numbers" ,but in "async def tree_parser",no this
wish can add process_toc_no_page_numbers
example:
async def tree_parser(page_list, opt, update_status, obj_id=None):
check_toc_result = check_toc(page_list, opt)
logger.info(f'pageindex:{check_toc_result}')
if check_toc_result.get("toc_content") and check_toc_result["toc_content"].strip() and check_toc_result[
"page_index_given_in_toc"] == "yes":
toc_with_page_number = await meta_processor(
page_list,
mode='process_toc_with_page_numbers',
start_index=1,
toc_content=check_toc_result['toc_content'],
toc_page_list=check_toc_result['toc_page_list'],
opt=opt)
elif check_toc_result.get("toc_content") and check_toc_result["toc_content"].strip() and check_toc_result[
"page_index_given_in_toc"] == "no":
toc_with_page_number = await meta_processor(
page_list,
mode='process_toc_no_page_numbers',
start_index=1,
toc_content=check_toc_result['toc_content'],
toc_page_list=check_toc_result['toc_page_list'],
opt=opt)
else:
toc_with_page_number = await meta_processor(
page_list,
mode='process_no_toc',
start_index=1,
opt=opt)
sqs000
Metadata
Metadata
Assignees
Labels
No labels