diff options
-rw-r--r-- | commands.c | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -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"); } |