diff options
-rw-r--r-- | server/media.erl | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/server/media.erl b/server/media.erl index 3678ff3..3897a6a 100644 --- a/server/media.erl +++ b/server/media.erl @@ -55,9 +55,8 @@ all() -> play(Artist, Title, Callback) -> [Head|_] = ask(Artist, Title), - {_, artist, title, _, _, fp} = Head, - Cmd = "mplayer -quiet " ++ fp, - Port = erlang:open_port({spawn, Cmd}, [exit_status]). - + {_, _, _, _, _, Fp} = Head, +% Port = erlang:open_port({spawn, Cmd}, [exit_status]). + Port = erlang:open_port({spawn_executable, "/usr/bin/mplayer"}, [{args, [Fp]}]). % We want to execute commands locally |