mirror of
https://github.com/pkkid/python-plexapi
synced 2025-02-16 12:58:26 +00:00
Add LibrarySection playlists method
This commit is contained in:
parent
86d51bae6c
commit
d4c22617cb
1 changed files with 5 additions and 0 deletions
|
@ -857,6 +857,11 @@ class LibrarySection(PlexObject):
|
|||
"""
|
||||
return self.search(libtype='collection', **kwargs)
|
||||
|
||||
def playlists(self, **kwargs):
|
||||
""" Returns a list of playlists from this library section. """
|
||||
key = '/playlists?type=15&playlistType=%s§ionID=%s' % (self.CONTENT_TYPE, self.key)
|
||||
return self.fetchItems(key, **kwargs)
|
||||
|
||||
|
||||
class MovieSection(LibrarySection):
|
||||
""" Represents a :class:`~plexapi.library.LibrarySection` section containing movies.
|
||||
|
|
Loading…
Add table
Reference in a new issue