diff --git a/src/command.c b/src/command.c index 2140173..aad82cc 100644 --- a/src/command.c +++ b/src/command.c @@ -335,6 +335,26 @@ int cmd_play ( int argc, char ** argv, mpd_Connection * conn ) return 1; } +int cmd_playid ( int argc, char ** argv, mpd_Connection * conn ) +{ + int song; + int i; + + if(0==argc) song = MPD_PLAY_AT_BEGINNING; + else { + for(i=0;i", "Remove a song from the current playlist"}, {"play", 0, -1, 2, cmd_play, "[]", "Start playing at (default: 1)"}, + {"playid", 0, -1, 2, cmd_playid, "[]", "Start playing at track "}, {"next", 0, 0, 0, cmd_next, "", "Play the next song in the current playlist"}, {"prev", 0, 0, 0, cmd_prev, "", "Play the previous song in the current playlist"}, {"pause", 0, 0, 0, cmd_pause, "", "Pauses the currently playing song"},