diff options
-rw-r--r-- | server/media.erl | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/server/media.erl b/server/media.erl index 644d533..3678ff3 100644 --- a/server/media.erl +++ b/server/media.erl @@ -1,5 +1,5 @@ -module(media). --export([init/0,insert/3, ask/2, all/0]). +-export([init/0,insert/3, ask/2, all/0, play/3]). % Since we are not willing to calculate and deliver all the id3 tags everytime they are requested, % we try to get something persistent with mnesia. @@ -56,8 +56,8 @@ all() -> play(Artist, Title, Callback) -> [Head|_] = ask(Artist, Title), {_, artist, title, _, _, fp} = Head, - Port = erlang:open_port({spawn, Cmd}, [exit_status]), - re + Cmd = "mplayer -quiet " ++ fp, + Port = erlang:open_port({spawn, Cmd}, [exit_status]). % We want to execute commands locally |