mirror of
https://github.com/pkkid/python-plexapi
synced 2024-11-10 22:24:12 +00:00
hopefully fix reload issue.
i really need to get add creds so i can test this locally.
This commit is contained in:
parent
b111e2490e
commit
4e404cb502
1 changed files with 1 additions and 6 deletions
|
@ -183,12 +183,7 @@ class PlexObject(object):
|
|||
|
||||
def reload(self, key=None):
|
||||
""" Reload the data for this object from self.key. """
|
||||
if key is None:
|
||||
if hasattr(self, '_details_key'):
|
||||
key = self._details_key
|
||||
else:
|
||||
key = self.key
|
||||
|
||||
key = key or self._details_key or self.key
|
||||
if not key:
|
||||
raise Unsupported('Cannot reload an object not built from a URL.')
|
||||
self._initpath = key
|
||||
|
|
Loading…
Reference in a new issue