X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~mdw/git/disorder/blobdiff_plain/4942ee7d61bf22ba38bf026c7d05028cb7db0d54..3c1a4e96f6fe291970497426d7d85efda80bc10b:/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.