diff --git a/apps/common/handle/impl/html_split_handle.py b/apps/common/handle/impl/html_split_handle.py index 564f6db49..3116aabfd 100644 --- a/apps/common/handle/impl/html_split_handle.py +++ b/apps/common/handle/impl/html_split_handle.py @@ -37,14 +37,9 @@ def get_encoding(buffer): class HTMLSplitHandle(BaseSplitHandle): def support(self, file, get_buffer): - buffer = get_buffer(file) file_name: str = file.name.lower() if file_name.endswith(".html"): return True - result = detect(buffer) - if result['encoding'] is not None and result['confidence'] is not None and result['encoding'] != 'ascii' and \ - result['confidence'] > 0.5: - return True return False def handle(self, file, pattern_list: List, with_filter: bool, limit: int, get_buffer, save_image):