X-Git-Url: https://git.distorted.org.uk/~mdw/disorder/blobdiff_plain/4942ee7d61bf22ba38bf026c7d05028cb7db0d54..417ef7de00568897d331d282478d93b323574f8c:/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.