Skip to content

Commit

Permalink
Move playlist management to its own module
Browse files Browse the repository at this point in the history
  • Loading branch information
Christian committed Jan 13, 2018
1 parent a1a1078 commit 368ae6c
Show file tree
Hide file tree
Showing 2 changed files with 404 additions and 0 deletions.
14 changes: 14 additions & 0 deletions soco/music_library.py
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,20 @@ def get_playlists(self, *args, **kwargs):
args = tuple(['playlists'] + list(args))
return self.get_music_library_information(*args, **kwargs)

def get_sonos_playlists(self, *args, **kwargs):
"""Convenience method for `get_music_library_information`
with ``search_type='sonos_playlists'``. For details of other arguments,
see `that method
<#soco.music_library.MusicLibrary.get_music_library_information>`_.
Note:
The playlists that are referred to here are the Sonos playlists,
not those imported from the music library.
"""
args = tuple(['sonos_playlists'] + list(args))
return self.get_music_library_information(*args, **kwargs)

def get_sonos_favorites(self, *args, **kwargs):
"""Convenience method for `get_music_library_information`
with ``search_type='sonos_favorites'``. For details of other arguments,
Expand Down

0 comments on commit 368ae6c

Please sign in to comment.