hopefully fix reload issue.

i really need to get add creds so i can test this locally.
This commit is contained in:
Hellowlol 2018-03-02 19:28:23 +01:00
parent b111e2490e
commit 4e404cb502

View file

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