mirror of
https://github.com/Syncplay/syncplay
synced 2025-03-25 04:18:30 +00:00
Be case insentitive for raw filename comparisons
This commit is contained in:
parent
80ef5b1312
commit
cf4d150ede
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user