Skip to content

Commit 22e192e

Browse files
authored
fix: 修复文档导入解析错误 (#570)
1 parent d907dd3 commit 22e192e

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

apps/common/handle/impl/html_split_handle.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -37,14 +37,9 @@ def get_encoding(buffer):
3737

3838
class HTMLSplitHandle(BaseSplitHandle):
3939
def support(self, file, get_buffer):
40-
buffer = get_buffer(file)
4140
file_name: str = file.name.lower()
4241
if file_name.endswith(".html"):
4342
return True
44-
result = detect(buffer)
45-
if result['encoding'] is not None and result['confidence'] is not None and result['encoding'] != 'ascii' and \
46-
result['confidence'] > 0.5:
47-
return True
4843
return False
4944

5045
def handle(self, file, pattern_list: List, with_filter: bool, limit: int, get_buffer, save_image):

0 commit comments

Comments
 (0)