Be case insentitive for raw filename comparisons

This commit is contained in:
Et0h 2016-12-24 21:14:24 +00:00
parent 80ef5b1312
commit cf4d150ede

View File

@ -202,6 +202,11 @@ def hashFilesize(size):
return hashlib.sha256(str(size)).hexdigest()[:12]
def sameHashed(string1raw, string1hashed, string2raw, string2hashed):
try:
if string1raw.lower() == string2raw.lower():
return True
except AttributeError:
pass
if string1raw == string2raw:
return True
elif string1raw == string2hashed: