create Preferences class

This commit is contained in:
blacktwin 2020-05-23 23:04:55 -04:00
parent 65271c351d
commit f6fcf95272

View file

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