Include Plex resume data in CreateListItem
This commit is contained in:
parent
0d79ec76b1
commit
05d3242f22
1 changed files with 5 additions and 0 deletions
|
@ -2172,6 +2172,11 @@ class API():
|
||||||
'mpaa': self.getMpaa(),
|
'mpaa': self.getMpaa(),
|
||||||
'aired': self.getPremiereDate()
|
'aired': self.getPremiereDate()
|
||||||
}
|
}
|
||||||
|
try:
|
||||||
|
except ZeroDivisionError:
|
||||||
|
PercentPlayed = 0.0
|
||||||
|
if PercentPlayed > 0:
|
||||||
|
metadata['PercentPlayed'] = PercentPlayed
|
||||||
|
|
||||||
if self.getType() == "episode":
|
if self.getType() == "episode":
|
||||||
# Only for tv shows
|
# Only for tv shows
|
||||||
|
|
Loading…
Reference in a new issue