This commit is contained in:
Uriziel 2012-10-01 21:39:43 +02:00
parent 6157fdff48
commit 49d5be5050

View File

@ -153,4 +153,5 @@ class MPCHCAPIPlayer(object):
def run_mpc(manager, mpc_path, file_path, args):
mpc = MPCHCAPIPlayer(manager)
mpc.mpc_api.callbacks.on_connected = lambda: mpc.mpc_api.open_file(file_path) if(file_path) else None
mpc.mpc_api.start_mpc(mpc_path, args)
mpc.mpc_api.start_mpc(mpc_path, args)
return mpc