aboutsummaryrefslogtreecommitdiffstats
path: root/server
diff options
context:
space:
mode:
Diffstat (limited to 'server')
-rw-r--r--server/media.erl2
1 files changed, 1 insertions, 1 deletions
diff --git a/server/media.erl b/server/media.erl
index f73de20..91fc34b 100644
--- a/server/media.erl
+++ b/server/media.erl
@@ -51,7 +51,7 @@ insert(Artist, Title, Filepath) ->
% We want to query in order to simplify the next calls.
ask(Artist, Title) ->
F = fun() ->
- mnesia:match_object({track, Artist, Title, '_', '_', '_'})
+ mnesia:match_object({track, Title, Artist, '_', '_', '_'})
end,
{atomic, Results} = mnesia:transaction(F),
Results.