summaryrefslogtreecommitdiff
path: root/libmpd
diff options
context:
space:
mode:
authorDavid Vazgenovich Shakaryan <dvshakaryan@gmail.com>2009-08-01 14:24:50 -0700
committerDavid Vazgenovich Shakaryan <dvshakaryan@gmail.com>2009-08-01 14:24:50 -0700
commit5bbea615ba2d5efe3abf7a575156f93efeeeb9a8 (patch)
tree1484ffb86f7ab635e73462ae9b0042f2093ac088 /libmpd
parent83762febdc47553b4ed666f3ead4e1769ff6be01 (diff)
downloadruby-libmpd-5bbea615ba2d5efe3abf7a575156f93efeeeb9a8.tar.gz
ruby-libmpd-5bbea615ba2d5efe3abf7a575156f93efeeeb9a8.tar.xz
New deleteid method.
Diffstat (limited to 'libmpd')
-rw-r--r--libmpd/playlist.rb5
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