File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 3030from lib .core .common import dataToSessionFile
3131from lib .core .common import dataToStdout
3232from lib .core .common import getCharset
33+ from lib .core .common import getGoodSamaritanCharsets
3334from lib .core .common import replaceNewlineTabs
3435from lib .core .common import safeStringFormat
3536from lib .core .convert import urlencode
@@ -342,10 +343,10 @@ def downloadThread():
342343 charStart = time .time ()
343344
344345 if conf .useCommonPrediction :
345- commonTbl , otherTbl = getCommonPredictionTables (finalValue , asciiTbl )
346- val = getChar (index , commonTbl ) if commonTbl else None
346+ predictedCharset , otherCharset = getGoodSamaritanCharsets (finalValue , asciiTbl )
347+ val = getChar (index , predictedCharset ) if predictedCharset else None
347348 if not val :
348- val = getChar (index , otherTbl )
349+ val = getChar (index , otherCharset )
349350 else :
350351 val = getChar (index , asciiTbl )
351352
You can’t perform that action at this time.
0 commit comments