From c417cacd322a37be2e4e65cfeb5149cd6ddb0a1f Mon Sep 17 00:00:00 2001 From: David Vazgenovich Shakaryan Date: Tue, 21 Jul 2009 16:39:01 -0700 Subject: Add seek method. --- mpdlib.rb | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'mpdlib.rb') diff --git a/mpdlib.rb b/mpdlib.rb index 8aaa90b..dc11bd1 100644 --- a/mpdlib.rb +++ b/mpdlib.rb @@ -85,4 +85,8 @@ class MPD def previous return send_request 'previous' end + + def seek songpos, time + return send_request 'seek %s %s' % [songpos, time] + end end -- cgit v1.2.3-70-g09d2