Include Plex resume data in CreateListItem

This commit is contained in:
tomkat83 2016-04-18 12:30:00 +02:00
parent 0d79ec76b1
commit 05d3242f22

View file

@ -2172,6 +2172,11 @@ class API():
'mpaa': self.getMpaa(),
'aired': self.getPremiereDate()
}
try:
except ZeroDivisionError:
PercentPlayed = 0.0
if PercentPlayed > 0:
metadata['PercentPlayed'] = PercentPlayed
if self.getType() == "episode":
# Only for tv shows