From cf4d150ede04cadff8415b8c46ce3b53ee968072 Mon Sep 17 00:00:00 2001 From: Et0h Date: Sat, 24 Dec 2016 21:14:24 +0000 Subject: [PATCH] Be case insentitive for raw filename comparisons --- syncplay/utils.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/syncplay/utils.py b/syncplay/utils.py index 7733464..9eafe82 100644 --- a/syncplay/utils.py +++ b/syncplay/utils.py @@ -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: