X-Git-Url: https://git.distorted.org.uk/~mdw/disorder/blobdiff_plain/4942ee7d61bf22ba38bf026c7d05028cb7db0d54..19001ab9ad948f85227dfde2eabe2a9f31b66e3a:/python/disorder.py.in?ds=sidebyside diff --git a/python/disorder.py.in b/python/disorder.py.in index d06c7ee..8584c85 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. @@ -613,7 +623,7 @@ class client: track -- the track to modify key -- the preference to remove """ - self._simple("set", track, key, value) + self._simple("set", track, key) def get(self, track, key): """Get a preference value. @@ -833,7 +843,7 @@ class client: Arguments: key -- the preference to remove """ - self._simple("set-global", key, value) + self._simple("set-global", key) def getglobal(self, key): """Get a global preference value.