summaryrefslogtreecommitdiff
path: root/mpdlib.rb
diff options
context:
space:
mode:
Diffstat (limited to 'mpdlib.rb')
-rw-r--r--mpdlib.rb8
1 files changed, 8 insertions, 0 deletions
diff --git a/mpdlib.rb b/mpdlib.rb
index dc11bd1..7d4d33d 100644
--- a/mpdlib.rb
+++ b/mpdlib.rb
@@ -89,4 +89,12 @@ class MPD
def seek songpos, time
return send_request 'seek %s %s' % [songpos, time]
end
+
+ def add uri
+ return send_request 'add "%s"' % uri
+ end
+
+ def delete songpos
+ return send_request 'delete ' + songpos.to_s
+ end
end