small bugfixes
This commit is contained in:
parent
a32a856041
commit
8456661be5
@ -4,6 +4,7 @@ from syncplay.client import SyncplayClientManager
|
||||
from syncplay.players import mpc
|
||||
from syncplay.ConfigurationGetter import MPCConfigurationGetter
|
||||
|
||||
|
||||
class SyncplayMPC(SyncplayClient):
|
||||
def __init__(self):
|
||||
SyncplayClient.__init__(self)
|
||||
@ -15,12 +16,10 @@ class SyncplayMPC(SyncplayClient):
|
||||
def _prepareArguments(self):
|
||||
self.argsGetter = MPCConfigurationGetter()
|
||||
self.args = self.argsGetter.getConfiguration()
|
||||
self.argsGetter.saveValuesIntoConfigFile()
|
||||
|
||||
|
||||
def _promptForMissingArguments(self):
|
||||
SyncplayClient._promptForMissingArguments(self)
|
||||
#if(self.args.no_gui)
|
||||
while (self.args.mpc_path == None):
|
||||
if (self.args.mpc_path == None):
|
||||
self.args.mpc_path = self.interface.promptFor(promptName = "Path to mpc-hc.exe", message = "You must supply path to mpc on the first run, it's easier through command line arguments.")
|
||||
|
||||
|
||||
|
||||
|
||||
@ -6,5 +6,6 @@ def getUi(graphical = True):
|
||||
ui = GraphicalUI()
|
||||
else:
|
||||
ui = ConsoleUI()
|
||||
ui.setDaemon(True)
|
||||
ui.start()
|
||||
return ui
|
||||
@ -33,7 +33,7 @@ class ConsoleUI(threading.Thread):
|
||||
elif(self._syncplayClient):
|
||||
self._executeCommand(data)
|
||||
except:
|
||||
raise
|
||||
pass
|
||||
|
||||
def promptFor(self, promptName = ">", message = ""):
|
||||
print(message)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user