Same as previous commit

This commit is contained in:
Uriziel 2012-09-18 13:10:39 +02:00
parent 698fba9054
commit c24ff27720

View File

@ -10,13 +10,12 @@ class SyncplayMPC:
# self.interface = ui.getUi(graphical = not self.args.no_gui) # self.interface = ui.getUi(graphical = not self.args.no_gui)
self.interface = ui.getUi(graphical = False) #TODO: add gui self.interface = ui.getUi(graphical = False) #TODO: add gui
self._promptForMissingArguments() self._promptForMissingArguments()
syncplayClient = client.SyncplayClient(self.args.name, lambda m: mpc.run_mpc(m, self.args.mpc_path, self.args.file, self.args._args), self.interface, self.args.debug) syncplayClient = client.SyncplayClient(self.args.name, lambda m: mpc.run_mpc(m, self.args.mpc_path, self.args.file, self.args._args), self.interface, self.args.debug, self.args.room, self.args.password)
self.interface.addClient(syncplayClient) self.interface.addClient(syncplayClient)
syncplayClient.start(self.args.host, self.args.port) syncplayClient.start(self.args.host, self.args.port)
def _prepareArguments(self): def _prepareArguments(self):
self.argsGetter = utils.MPCConfigurationGetter() self.argsGetter = utils.MPCConfigurationGetter()
self.argsGetter.prepareClientConfiguration() self.args = self.argsGetter.getConfiguration()
self.args = self.argsGetter.getClientConfiguration()
def _promptForMissingArguments(self): def _promptForMissingArguments(self):
if (self.args.host == None): if (self.args.host == None):