Refactor
This commit is contained in:
parent
6157fdff48
commit
49d5be5050
@ -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
|
||||
Loading…
x
Reference in New Issue
Block a user