diff --git a/resources/lib/PlexAPI.py b/resources/lib/PlexAPI.py index 4bd1f259..f66a9953 100644 --- a/resources/lib/PlexAPI.py +++ b/resources/lib/PlexAPI.py @@ -2173,6 +2173,7 @@ class API(): 'aired': self.getPremiereDate() } try: + PercentPlayed = userdata['Resume'] / userdata['Runtime'] * 100.0 except ZeroDivisionError: PercentPlayed = 0.0 if PercentPlayed > 0: