summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJon Bergli Heier <snakebite@jvnv.net>2010-08-26 21:59:44 +0200
committerJon Bergli Heier <snakebite@jvnv.net>2010-08-26 21:59:44 +0200
commit456f361453c7e135e36152098acb1ba9b5883b82 (patch)
tree67694422bc5a176033094793a1c8f6f0a0573e35
parentbbaf981c8e3de27186d1b68389903ae3ba4fc61f (diff)
Added title and album search to commands.
-rw-r--r--commands.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/commands.c b/commands.c
index 8869f49..3ff250d 100644
--- a/commands.c
+++ b/commands.c
@@ -66,10 +66,12 @@ 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");
}