summaryrefslogtreecommitdiff
path: root/libmpd/playlist.rb
diff options
context:
space:
mode:
Diffstat (limited to 'libmpd/playlist.rb')
-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