From 8da1c00f073033d399f42ecc83f1b5ec97eb4644 Mon Sep 17 00:00:00 2001 From: Uriziel Date: Tue, 16 Oct 2012 20:04:11 +0200 Subject: [PATCH] Difference of 1 sec in file duration is acceptable now --- syncplay/client.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/syncplay/client.py b/syncplay/client.py index 3989cb4..6fde299 100644 --- a/syncplay/client.py +++ b/syncplay/client.py @@ -316,7 +316,7 @@ class SyncplayUser(object): return False sameName = self.file['name'] == file_['name'] sameSize = self.file['size'] == file_['size'] - sameDuration = self.file['duration'] == file_['duration'] + sameDuration = int(self.file['duration']) - int(file_['duration']) < 1 return sameName and sameSize and sameDuration def __lt__(self, other):