mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-07-12 08:16:06 -07:00
Bump plexapi from 4.8.0 to 4.9.1 (#1627)
* Bump plexapi from 4.8.0 to 4.9.1 Bumps [plexapi](https://github.com/pkkid/python-plexapi) from 4.8.0 to 4.9.1. - [Release notes](https://github.com/pkkid/python-plexapi/releases) - [Commits](https://github.com/pkkid/python-plexapi/compare/4.8.0...4.9.1) --- updated-dependencies: - dependency-name: plexapi dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> * Update plexapi==4.9.1 Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: JonnyWong16 <9099342+JonnyWong16@users.noreply.github.com>
This commit is contained in:
parent
a4ab5ab9be
commit
7f0abe0fe6
9 changed files with 254 additions and 76 deletions
|
@ -113,17 +113,19 @@ class Setting(PlexObject):
|
|||
|
||||
def _loadData(self, data):
|
||||
""" Load attribute values from Plex XML response. """
|
||||
self._setValue = None
|
||||
self.type = data.attrib.get('type')
|
||||
self.advanced = utils.cast(bool, data.attrib.get('advanced'))
|
||||
self.default = self._cast(data.attrib.get('default'))
|
||||
self.enumValues = self._getEnumValues(data)
|
||||
self.group = data.attrib.get('group')
|
||||
self.hidden = utils.cast(bool, data.attrib.get('hidden'))
|
||||
self.id = data.attrib.get('id')
|
||||
self.label = data.attrib.get('label')
|
||||
self.option = data.attrib.get('option')
|
||||
self.secure = utils.cast(bool, data.attrib.get('secure'))
|
||||
self.summary = data.attrib.get('summary')
|
||||
self.type = data.attrib.get('type')
|
||||
self.default = self._cast(data.attrib.get('default'))
|
||||
self.value = self._cast(data.attrib.get('value'))
|
||||
self.hidden = utils.cast(bool, data.attrib.get('hidden'))
|
||||
self.advanced = utils.cast(bool, data.attrib.get('advanced'))
|
||||
self.group = data.attrib.get('group')
|
||||
self.enumValues = self._getEnumValues(data)
|
||||
self._setValue = None
|
||||
|
||||
def _cast(self, value):
|
||||
""" Cast the specific value to the type of this setting. """
|
||||
|
@ -132,8 +134,8 @@ class Setting(PlexObject):
|
|||
return value
|
||||
|
||||
def _getEnumValues(self, data):
|
||||
""" Returns a list of dictionary of valis value for this setting. """
|
||||
enumstr = data.attrib.get('enumValues')
|
||||
""" Returns a list or dictionary of values for this setting. """
|
||||
enumstr = data.attrib.get('enumValues') or data.attrib.get('values')
|
||||
if not enumstr:
|
||||
return None
|
||||
if ':' in enumstr:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue