From 27d6be217cd3114247762995b86ca78c3ef19972 Mon Sep 17 00:00:00 2001 From: Etoh Date: Fri, 19 Jul 2013 11:04:23 +0100 Subject: [PATCH] client.py sameDuration check: round for formatTime consistency --- syncplay/client.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/syncplay/client.py b/syncplay/client.py index d76fb15..bbd0ee5 100644 --- a/syncplay/client.py +++ b/syncplay/client.py @@ -430,7 +430,7 @@ class SyncplayUser(object): return False sameName = stripfilename(self.file['name']) == stripfilename(file_['name']) sameSize = self.file['size'] == file_['size'] - sameDuration = abs(int(self.file['duration']) - int(file_['duration'])) < constants.DIFFFERENT_DURATION_THRESHOLD + sameDuration = abs(round(self.file['duration']) - round(file_['duration'])) < constants.DIFFFERENT_DURATION_THRESHOLD return sameName and sameSize and sameDuration def __lt__(self, other):