aboutsummaryrefslogtreecommitdiffstats
path: root/server
diff options
context:
space:
mode:
authormicha <micha@ssnc10.localdomain>2010-10-13 15:43:08 +0200
committermicha <micha@ssnc10.localdomain>2010-10-13 15:43:08 +0200
commita6784d57c203b61b09b4a6d5d8895a666d89327f (patch)
treefc620ea63f3ad7c2da5e4eb180d580f702b553ab /server
parent4ba5338d3279cd75106aa96810b91e35e692a49f (diff)
downloaderlang-a6784d57c203b61b09b4a6d5d8895a666d89327f.tar.gz
erlang-a6784d57c203b61b09b4a6d5d8895a666d89327f.tar.xz
erlang-a6784d57c203b61b09b4a6d5d8895a666d89327f.zip
fixed media player
Diffstat (limited to 'server')
-rw-r--r--server/media.erl7
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