Include Plex resume data in CreateListItem
This commit is contained in:
parent
05d3242f22
commit
6f5f73ae86
1 changed files with 1 additions and 0 deletions
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue