mirror of
https://github.com/pkkid/python-plexapi
synced 2024-11-29 23:20:23 +00:00
plex.settings.__getattr__ should return the value (not the object)
This commit is contained in:
parent
91a8ab4563
commit
a9416c0708
1 changed files with 1 additions and 1 deletions
|
@ -22,7 +22,7 @@ class Settings(PlexObject):
|
||||||
def __getattr__(self, attr):
|
def __getattr__(self, attr):
|
||||||
if attr.startswith('_'):
|
if attr.startswith('_'):
|
||||||
return self.__dict__[attr]
|
return self.__dict__[attr]
|
||||||
return self.get(attr)
|
return self.get(attr).value
|
||||||
|
|
||||||
def __setattr__(self, attr, value):
|
def __setattr__(self, attr, value):
|
||||||
if not attr.startswith('_'):
|
if not attr.startswith('_'):
|
||||||
|
|
Loading…
Reference in a new issue