mirror of
https://github.com/pkkid/python-plexapi
synced 2024-11-10 14:14:19 +00:00
create defaultAdvanced method
allows for defaulting all advanced settings
This commit is contained in:
parent
0dbdff4b03
commit
afe25d19ac
1 changed files with 8 additions and 0 deletions
|
@ -462,6 +462,14 @@ class Show(Video):
|
||||||
url = key + urlencode(data)
|
url = key + urlencode(data)
|
||||||
self._server.query(url, method=self._server._session.put)
|
self._server.query(url, method=self._server._session.put)
|
||||||
|
|
||||||
|
def defaultAdvanced(self):
|
||||||
|
data = {}
|
||||||
|
key = '%s/prefs?' % self.key
|
||||||
|
for preference in self.preferences():
|
||||||
|
data[preference.id] = preference.default
|
||||||
|
url = key + urlencode(data)
|
||||||
|
self._server.query(url, method=self._server._session.put)
|
||||||
|
|
||||||
def hubs(self):
|
def hubs(self):
|
||||||
""" Returns a list of :class:`~plexapi.library.Hub` objects. """
|
""" Returns a list of :class:`~plexapi.library.Hub` objects. """
|
||||||
data = self._server.query(self._details_key)
|
data = self._server.query(self._details_key)
|
||||||
|
|
Loading…
Reference in a new issue