mirror of
https://github.com/pkkid/python-plexapi
synced 2024-11-22 19:53:17 +00:00
add defaultAdvanced method to library.LibrarySection
This commit is contained in:
parent
7474e7d28e
commit
59fcdb4080
1 changed files with 9 additions and 0 deletions
|
@ -491,6 +491,15 @@ class LibrarySection(PlexObject):
|
|||
|
||||
self.edit(**data)
|
||||
|
||||
def defaultAdvanced(self):
|
||||
""" Edit all of library's advanced settings to default. """
|
||||
data = {}
|
||||
key = 'prefs[%s]'
|
||||
for setting in self.settings():
|
||||
data[key % setting.id] = setting.default
|
||||
|
||||
self.edit(**data)
|
||||
|
||||
def onDeck(self):
|
||||
""" Returns a list of media items on deck from this library section. """
|
||||
key = '/library/sections/%s/onDeck' % self.key
|
||||
|
|
Loading…
Reference in a new issue