From ce643b5be296ec114e07152669fbd33240b57cc1 Mon Sep 17 00:00:00 2001 From: David Vazgenovich Shakaryan Date: Tue, 21 Jul 2009 16:55:06 -0700 Subject: Add add and delete methods. --- mpdlib.rb | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'mpdlib.rb') 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 -- cgit v1.2.3-70-g09d2