From 46e3d37ec62e7c6097e317d9b625107cade26ade Mon Sep 17 00:00:00 2001 From: Uriziel Date: Sat, 22 Sep 2012 19:11:28 +0200 Subject: [PATCH] fix for mplayer --- syncplay/client.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/syncplay/client.py b/syncplay/client.py index 0903519..ebadeb3 100644 --- a/syncplay/client.py +++ b/syncplay/client.py @@ -65,7 +65,7 @@ class SyncClientProtocol(CommandProtocol): who, where, what, duration, size = args[0], args[1], None, None, None self.__syncplayClient.users.addUser(SyncplayClientManager.SyncplayUser(who, what, where, duration, size)) if what: - message = '%s is present and is playing \'%s\' (%s) in the room: \'%s\'' % (who, what, format_time(int(duration)), where) + message = '%s is present and is playing \'%s\' (%s) in the room: \'%s\'' % (who, what, format_time(float(duration)), where) self.__syncplayClient.ui.showMessage(message) self.__syncplayClient.checkIfFileMatchesOthers() else: