Small Fix resume playing
This commit is contained in:
parent
0578020cb9
commit
22250b1485
2 changed files with 1 additions and 2 deletions
|
@ -89,7 +89,7 @@ def PassPlaylist(xml, resume=None):
|
||||||
|
|
||||||
# Get resume point
|
# Get resume point
|
||||||
resume1 = PlexFunctions.ConvertPlexToKodiTime(utils.IntFromStr(
|
resume1 = PlexFunctions.ConvertPlexToKodiTime(utils.IntFromStr(
|
||||||
xml.attrib.get('playQueueSelectedItemOffset')))
|
xml.attrib.get('playQueueSelectedItemOffset', 0)))
|
||||||
resume2 = resume
|
resume2 = resume
|
||||||
resume = max(resume1, resume2)
|
resume = max(resume1, resume2)
|
||||||
|
|
||||||
|
|
|
@ -304,7 +304,6 @@ class PlaybackUtils():
|
||||||
# - artist : list (['U2'])
|
# - artist : list (['U2'])
|
||||||
listItem.setProperty('IsPlayable', 'true')
|
listItem.setProperty('IsPlayable', 'true')
|
||||||
listItem.setProperty('IsFolder', 'false')
|
listItem.setProperty('IsFolder', 'false')
|
||||||
listItem.setProperty('StartOffset', '-1')
|
|
||||||
listItem.setLabel(metadata['title'])
|
listItem.setLabel(metadata['title'])
|
||||||
listItem.setInfo('video', infoLabels=metadata)
|
listItem.setInfo('video', infoLabels=metadata)
|
||||||
"""
|
"""
|
||||||
|
|
Loading…
Reference in a new issue