cmd_id != MPD_API_GET_MPDHOST && cmd_id != MPD_API_SET_MPDPASS)
return MG_TRUE;
+ printf("API: \"%s\"\n", c->content);
+
switch (cmd_id) {
case MPD_API_AUTHORIZE:
p_charbuf = strdup(c->content);
free(p_charbuf);
p_charbuf = strdup(c->content);
+ printf(" PLAYLIST NAME = %s\n", get_arg2(p_charbuf));
n = mpd_put_playlist(mpd.buf, get_arg2(p_charbuf), uint_buf);
out_playlist:
free(p_charbuf);
case MPD_ENTITY_TYPE_PLAYLIST:
pl = mpd_entity_get_playlist(entity);
+ printf("playlist: %s\n",
+ mpd_playlist_get_path(pl));
cur += json_emit_raw_str(cur, end - cur, "{\"type\":\"playlist\",\"plist\":");
cur += json_emit_quoted_str(cur, end - cur, mpd_playlist_get_path(pl));
cur += json_emit_raw_str(cur, end - cur, "},");