Fix resume for On Deck and browse by folder
This commit is contained in:
parent
f0393771a9
commit
b23c6e2932
1 changed files with 5 additions and 0 deletions
|
@ -567,6 +567,9 @@ def getOnDeck(viewid, mediatype, tagname, limit):
|
||||||
api.plex_id(),
|
api.plex_id(),
|
||||||
api.plex_type(),
|
api.plex_type(),
|
||||||
api.file_name(force_first_media=True)))
|
api.file_name(force_first_media=True)))
|
||||||
|
if api.resume_point():
|
||||||
|
listitem.setProperty('resumetime',
|
||||||
|
str(api.resume_point()))
|
||||||
xbmcplugin.addDirectoryItem(
|
xbmcplugin.addDirectoryItem(
|
||||||
handle=HANDLE,
|
handle=HANDLE,
|
||||||
url=url,
|
url=url,
|
||||||
|
@ -839,6 +842,8 @@ def __build_item(xml_element):
|
||||||
api.plex_id(),
|
api.plex_id(),
|
||||||
api.plex_type(),
|
api.plex_type(),
|
||||||
api.file_name(force_first_media=True))
|
api.file_name(force_first_media=True))
|
||||||
|
if api.resume_point():
|
||||||
|
listitem.setProperty('resumetime', str(api.resume_point()))
|
||||||
xbmcplugin.addDirectoryItem(handle=HANDLE,
|
xbmcplugin.addDirectoryItem(handle=HANDLE,
|
||||||
url=url,
|
url=url,
|
||||||
listitem=listitem)
|
listitem=listitem)
|
||||||
|
|
Loading…
Add table
Reference in a new issue