summaryrefslogtreecommitdiff
path: root/mpdlib.rb
diff options
context:
space:
mode:
Diffstat (limited to 'mpdlib.rb')
-rw-r--r--mpdlib.rb4
1 files changed, 4 insertions, 0 deletions
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