diff --git a/plexapi/library.py b/plexapi/library.py index 736d73b5..09e3b706 100644 --- a/plexapi/library.py +++ b/plexapi/library.py @@ -4,6 +4,7 @@ from plexapi.base import PlexObject from plexapi.compat import unquote, urlencode, quote_plus from plexapi.media import MediaTag from plexapi.exceptions import BadRequest, NotFound +from plexapi.settings import Setting class Library(PlexObject): @@ -401,6 +402,12 @@ class LibrarySection(PlexObject): key = '/library/sections/%s/all%s' % (self.key, sortStr) return self.fetchItems(key, **kwargs) + def settings(self): + """ Returns a list of all library settings. """ + key = '/library/sections/%s/prefs' % self.key + data = self._server.query(key) + return self.findItems(data, cls=Setting) + def onDeck(self): """ Returns a list of media items on deck from this library section. """ key = '/library/sections/%s/onDeck' % self.key