X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~mdw/git/disorder/blobdiff_plain/61b761862db3feb9bd0135a64ac3729f70917f89..7a853280dc559b6a6d30e08daab964dcf64da62b:/python/disorder.py.in diff --git a/python/disorder.py.in b/python/disorder.py.in index d06c7ee..fe054a9 100644 --- a/python/disorder.py.in +++ b/python/disorder.py.in @@ -439,6 +439,16 @@ class client: res, details = self._simple("play", track) return unicode(details) # because it's unicode in queue() output + def playafter(self, target, tracks): + """Insert tracks into a specific point in the queue. + + Arguments: + target -- target ID or None to insert at start of queue + tracks -- a list of tracks to play""" + if target is None: + target = '' + self._simple("playafter", target, *tracks) + def remove(self, track): """Remove a track from the queue.