correction for library.librarySection.defaultAdvanced method

This commit is contained in:
blacktwin 2020-06-18 10:03:47 -04:00
parent c7baf71323
commit 38b863b8da

View file

@ -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)