diff options
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. |