Fix resume for On Deck and browse by folder

This commit is contained in:
Croneter 2018-03-27 08:20:39 +02:00
parent f0393771a9
commit b23c6e2932

View file

@ -567,6 +567,9 @@ def getOnDeck(viewid, mediatype, tagname, limit):
api.plex_id(),
api.plex_type(),
api.file_name(force_first_media=True)))
if api.resume_point():
listitem.setProperty('resumetime',
str(api.resume_point()))
xbmcplugin.addDirectoryItem(
handle=HANDLE,
url=url,
@ -839,6 +842,8 @@ def __build_item(xml_element):
api.plex_id(),
api.plex_type(),
api.file_name(force_first_media=True))
if api.resume_point():
listitem.setProperty('resumetime', str(api.resume_point()))
xbmcplugin.addDirectoryItem(handle=HANDLE,
url=url,
listitem=listitem)