Minor update

This commit is contained in:
Miroslav Stampar
2026-01-04 20:46:18 +01:00
parent 9e436efbc5
commit 58ebc41b28
4 changed files with 6 additions and 6 deletions

View File

@@ -258,7 +258,7 @@ def getHeuristicCharEncoding(page):
'ascii'
"""
key = hash(page)
key = (len(page), hash(page))
retVal = kb.cache.encoding[key] if key in kb.cache.encoding else detect(page[:HEURISTIC_PAGE_SIZE_THRESHOLD])["encoding"]
kb.cache.encoding[key] = retVal