Fix missing resume points

This commit is contained in:
croneter 2018-01-28 17:28:02 +01:00
parent dfd5297cd3
commit 83833d76b3

View file

@ -815,6 +815,9 @@ def __build_folder(xml_element, plex_section_id=None):
def __build_item(xml_element): def __build_item(xml_element):
api = API(xml_element) api = API(xml_element)
listitem = api.CreateListItemFromPlexItem() listitem = api.CreateListItemFromPlexItem()
resume = api.getResume()
if resume:
listitem.setProperty('resumetime', str(resume))
if (api.getKey().startswith('/system/services') or if (api.getKey().startswith('/system/services') or
api.getKey().startswith('http')): api.getKey().startswith('http')):
params = { params = {