diff options
author | Michael Wittig <michael.wittig@fu-berlin.de> | 2010-10-14 19:14:46 +0200 |
---|---|---|
committer | Michael Wittig <michael.wittig@fu-berlin.de> | 2010-10-14 19:14:46 +0200 |
commit | 0a56de20bf1b461df480cf9f1319488c839bc6a4 (patch) | |
tree | 5e68c79d3632aba84ffdfdfa0b2a2f40aa168d15 /server/media.erl | |
parent | f2164544210f511664ed7186107789ec55ec3edf (diff) | |
download | erlang-0a56de20bf1b461df480cf9f1319488c839bc6a4.tar.gz erlang-0a56de20bf1b461df480cf9f1319488c839bc6a4.tar.xz erlang-0a56de20bf1b461df480cf9f1319488c839bc6a4.zip |
give_votes needs to be fixed, still
Diffstat (limited to 'server/media.erl')
-rw-r--r-- | server/media.erl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/server/media.erl b/server/media.erl index 80a3fea..5148edc 100644 --- a/server/media.erl +++ b/server/media.erl @@ -112,9 +112,9 @@ play(Artist, Title) -> io:format("playing: ~s, Artist: ~s~n", [Title, Artist]), receive - {Port, {exit_status, 0}} -> cldb:give_votes(cldb:ask("_","_")), start_playing(); + {Port, {exit_status, 0}} -> cldb:give_votes(cldb:all()), start_playing(); {Port, {exit_status, S}} -> throw({commandfailed, S}) - end. +end. % Of course we need a query to find out what the highest voted track is. |