summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJon Bergli Heier <snakebite@jvnv.net>2010-08-26 22:00:32 +0200
committerJon Bergli Heier <snakebite@jvnv.net>2010-08-26 22:00:32 +0200
commit3991db2df701b5b6a0401e6974811db3e15edb39 (patch)
treee4f2ed47cf2427f16baf029b05780eafd7932bcd
parent456f361453c7e135e36152098acb1ba9b5883b82 (diff)
Added title and album search to control commands.
-rw-r--r--control_commands.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/control_commands.c b/control_commands.c
index 0e5658a..41e8965 100644
--- a/control_commands.c
+++ b/control_commands.c
@@ -30,8 +30,11 @@ static void commands_find(GSocketConnection *connection, const gchar *cmd) {
GSList *list = NULL;
g_debug("strlen(%s) == %d", data[1], strlen(data[1]));
if(g_ascii_strcasecmp(data[1], "artist") == 0) {
- g_debug("artist search");
list = music_find_artist(data[2]);
+ } else if(g_ascii_strcasecmp(data[1] , "title") == 0) {
+ list = music_find_title(data[2]);
+ } else if(g_ascii_strcasecmp(data[1], "album") == 0) {
+ list = music_find_album(data[2]);
} else {
g_debug("unknown search");
}