Include Plex resume data in CreateListItem

This commit is contained in:
tomkat83 2016-04-18 12:30:34 +02:00
parent 05d3242f22
commit 6f5f73ae86

View file

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