mirror of
https://github.com/pkkid/python-plexapi
synced 2024-11-22 11:43:13 +00:00
update hubs method
This commit is contained in:
parent
81339cc3dc
commit
ce3fcc9b9d
1 changed files with 1 additions and 3 deletions
|
@ -447,11 +447,9 @@ class Show(Video):
|
|||
|
||||
def hubs(self):
|
||||
""" Returns a list of :class:`~plexapi.library.Hub` objects. """
|
||||
items = []
|
||||
data = self._server.query(self._details_key)
|
||||
for item in data.iter('Related'):
|
||||
for elem in item:
|
||||
items.append(library.Hub(data=elem, server=self._server))
|
||||
return self.findItems(item, library.Hub)
|
||||
|
||||
return items
|
||||
|
||||
|
|
Loading…
Reference in a new issue