fix for mplayer

This commit is contained in:
Uriziel 2012-09-22 19:12:53 +02:00
parent 46e3d37ec6
commit 8f5c98daa3

View File

@ -108,7 +108,7 @@ class SyncClientProtocol(CommandProtocol):
@argumentCount(5) @argumentCount(5)
def playing(self, args): def playing(self, args):
who, where, what, duration, size = args who, where, what, duration, size = args
message = '%s is playing \'%s\' (%s) in the room: \'%s\'' % (who, what, format_time(int(duration)), where) message = '%s is playing \'%s\' (%s) in the room: \'%s\'' % (who, what, format_time(float(duration)), where)
self.__syncplayClient.ui.showMessage(message) self.__syncplayClient.ui.showMessage(message)
self.__syncplayClient.users.addUser(SyncplayClientManager.SyncplayUser(who, what, where, duration, size)) self.__syncplayClient.users.addUser(SyncplayClientManager.SyncplayUser(who, what, where, duration, size))
self.__syncplayClient.checkIfFileMatchesOthers() self.__syncplayClient.checkIfFileMatchesOthers()