diff options
author | David Vazgenovich Shakaryan <dvshakaryan@gmail.com> | 2009-08-01 14:24:50 -0700 |
---|---|---|
committer | David Vazgenovich Shakaryan <dvshakaryan@gmail.com> | 2009-08-01 14:24:50 -0700 |
commit | 5bbea615ba2d5efe3abf7a575156f93efeeeb9a8 (patch) | |
tree | 1484ffb86f7ab635e73462ae9b0042f2093ac088 | |
parent | 83762febdc47553b4ed666f3ead4e1769ff6be01 (diff) | |
download | ruby-libmpd-5bbea615ba2d5efe3abf7a575156f93efeeeb9a8.tar.gz ruby-libmpd-5bbea615ba2d5efe3abf7a575156f93efeeeb9a8.tar.xz |
New deleteid method.
-rw-r--r-- | libmpd/playlist.rb | 5 |
1 files changed, 5 insertions, 0 deletions
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 |