mirror of
https://github.com/pkkid/python-plexapi
synced 2024-11-10 06:04:15 +00:00
update Setting _cast method
change exclusion from text to enum text type is available in TYPES dict for casting
This commit is contained in:
parent
1d05304643
commit
46e8b8e155
1 changed files with 2 additions and 2 deletions
|
@ -124,8 +124,8 @@ class Setting(PlexObject):
|
|||
self.enumValues = self._getEnumValues(data)
|
||||
|
||||
def _cast(self, value):
|
||||
""" Cast the specifief value to the type of this setting. """
|
||||
if self.type != 'text':
|
||||
""" Cast the specific value to the type of this setting. """
|
||||
if self.type != 'enum':
|
||||
value = utils.cast(self.TYPES.get(self.type)['cast'], value)
|
||||
return value
|
||||
|
||||
|
|
Loading…
Reference in a new issue