We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a9e2406 commit 7f5cf76Copy full SHA for 7f5cf76
plexapi/base.py
@@ -953,8 +953,10 @@ def _reload(self, **kwargs):
953
raise NotImplementedError('History objects cannot be reloaded. Use source() to get the source media item.')
954
955
def source(self):
956
- """ Return the source media object for the history entry. """
957
- return self.fetchItem(self._details_key)
+ """ Return the source media object for the history entry
+ or None if the media no longer exists on the server.
958
+ """
959
+ return self.fetchItem(self._details_key) if self._details_key else None
960
961
def delete(self):
962
""" Delete the history entry. """
0 commit comments