~mdw
/
disorder
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Initial playlist tests and consequent fixes.
[disorder]
/
python
/
disorder.py.in
diff --git
a/python/disorder.py.in
b/python/disorder.py.in
index
16685f5
..
56395c9
100644
(file)
--- a/
python/disorder.py.in
+++ b/
python/disorder.py.in
@@
-937,7
+937,7
@@
class client:
Arguments:
playlist -- Playlist to set
tracks -- Array of tracks"""
Arguments:
playlist -- Playlist to set
tracks -- Array of tracks"""
- self._simple_body(
"playlist-set", tracks
, playlist)
+ self._simple_body(
tracks, "playlist-set"
, playlist)
def playlist_set_share(self, playlist, share):
"""Set the sharing status of a playlist"""
def playlist_set_share(self, playlist, share):
"""Set the sharing status of a playlist"""
@@
-950,6
+950,11
@@
class client:
return None
return _split(details)[0]
return None
return _split(details)[0]
+ def playlists(self):
+ """Returns the list of visible playlists"""
+ self._simple("playlists")
+ return self._body()
+
########################################################################
# I/O infrastructure
########################################################################
# I/O infrastructure