From c4fe5b42d95bc29fcedd54a37569678d3c328abd Mon Sep 17 00:00:00 2001 From: Uriziel Date: Wed, 27 Jun 2012 18:29:55 +0200 Subject: [PATCH] Added help command --- syncplay/client.py | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/syncplay/client.py b/syncplay/client.py index 0128e84..6de118c 100644 --- a/syncplay/client.py +++ b/syncplay/client.py @@ -351,7 +351,14 @@ class Manager(object): self.player_position_before_last_seek = tmp_pos elif data == "p": self.player.set_paused(not self.player_paused) - + elif data == 'help': + print "Available commands:" + print "\thelp - this help" + print "\ts [time] - seek" + print "\ts+ [time] - seek to: current position += time" + print "\tr - revert last seek" + print "\tp - toggle pause" + print "\troom [room] - change room, if no supplied go to default" def update_player_status(self, paused, position): self.status_ask_received += 1 if self.status_ask_received < self.status_ask_sent: