fix --accumulated_num logic

This commit is contained in:
h 2023-03-17 16:43:46 +08:00
parent d6e978c03d
commit 6195ede713

View File

@ -214,6 +214,8 @@ class EPUBBookLoader(BaseBookLoader):
or is_figure(temp_p.text) or is_figure(temp_p.text)
or is_tail_Link(temp_p.text) or is_tail_Link(temp_p.text)
): ):
if i == len(p_list) - 1:
self.helper.deal_old(wait_p_list)
continue continue
length = num_tokens_from_text(temp_p.text) length = num_tokens_from_text(temp_p.text)
if length > send_num: if length > send_num: