mirror of
https://github.com/pkkid/python-plexapi
synced 2024-11-10 14:14:19 +00:00
create Preferences class
This commit is contained in:
parent
65271c351d
commit
f6fcf95272
1 changed files with 12 additions and 0 deletions
|
@ -155,3 +155,15 @@ class Setting(PlexObject):
|
|||
def toUrl(self):
|
||||
"""Helper for urls"""
|
||||
return '%s=%s' % (self.id, self._value or self.value)
|
||||
|
||||
|
||||
@utils.registerPlexObject
|
||||
class Preferences(Setting):
|
||||
""" Represents a single Preferences.
|
||||
|
||||
Attributes:
|
||||
TAG (str): 'Preferences'
|
||||
FILTER (str): 'preferences'
|
||||
"""
|
||||
TAG = 'Preferences'
|
||||
FILTER = 'preferences'
|
||||
|
|
Loading…
Reference in a new issue