mirror of
https://github.com/pkkid/python-plexapi
synced 2024-11-25 05:00:22 +00:00
correction for library.librarySection.defaultAdvanced method
This commit is contained in:
parent
c7baf71323
commit
38b863b8da
1 changed files with 4 additions and 1 deletions
|
@ -496,7 +496,10 @@ class LibrarySection(PlexObject):
|
|||
data = {}
|
||||
key = 'prefs[%s]'
|
||||
for setting in self.settings():
|
||||
data[key % setting.id] = setting.default
|
||||
if setting.type == 'bool':
|
||||
data[key % setting.id] = int(setting.default)
|
||||
else:
|
||||
data[key % setting.id] = setting.default
|
||||
|
||||
self.edit(**data)
|
||||
|
||||
|
|
Loading…
Reference in a new issue