From 27490478ea997bdc62b8d029a5317d7924023562 Mon Sep 17 00:00:00 2001 From: David Vazgenovich Shakaryan Date: Tue, 21 Jul 2009 16:13:46 -0700 Subject: Add ability to go to next and previous songs. --- mpdlib.rb | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'mpdlib.rb') diff --git a/mpdlib.rb b/mpdlib.rb index e1d3332..b452e9e 100644 --- a/mpdlib.rb +++ b/mpdlib.rb @@ -59,4 +59,12 @@ class MPD def stats return generate_hash send_request 'stats' end + + def next + return send_request 'next' + end + + def previous + return send_request 'previous' + end end -- cgit v1.2.3-70-g09d2