From 5bbea615ba2d5efe3abf7a575156f93efeeeb9a8 Mon Sep 17 00:00:00 2001 From: David Vazgenovich Shakaryan Date: Sat, 1 Aug 2009 14:24:50 -0700 Subject: New deleteid method. --- libmpd/playlist.rb | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'libmpd/playlist.rb') diff --git a/libmpd/playlist.rb b/libmpd/playlist.rb index 6266e46..3a9c99a 100644 --- a/libmpd/playlist.rb +++ b/libmpd/playlist.rb @@ -36,6 +36,11 @@ module MPDPlaylist return send_request('delete %s' % songpos) end + # Deletes a song from the playlist. + def deleteid(songid) + return send_request('deleteid %s' % songid) + end + # Returns an Array composed of Hashes containing information about the songs # in the playlist. def playlist -- cgit v1.2.3-70-g09d2