mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2024-11-10 04:06:11 +00:00
Small correction to resume behavior
This commit is contained in:
parent
da7094a9de
commit
36b8582226
2 changed files with 3 additions and 3 deletions
|
@ -232,9 +232,9 @@ class SpecialMonitor(threading.Thread):
|
|||
control = int(xbmcgui.Window(10106).getFocusId())
|
||||
if control == 1002: # Start from beginning
|
||||
log.info("Resume dialog: Start from beginning selected.")
|
||||
window('emby.resume', value="true")
|
||||
else:
|
||||
window('emby.resume', clear=True)
|
||||
else:
|
||||
window('emby.resume', value="true")
|
||||
|
||||
elif isPlaying and not window('emby.external_check'):
|
||||
time = player.getTime()
|
||||
|
|
|
@ -114,7 +114,7 @@ class PlaybackUtils(object):
|
|||
elif not resume:
|
||||
seektime = 0
|
||||
else:
|
||||
seektime = 0 if resume == "true" else self.API.adjust_resume(self.API.get_userdata()['Resume'])
|
||||
seektime = self.API.adjust_resume(self.API.get_userdata()['Resume']) if resume == "true" else 0
|
||||
|
||||
if force_transcode:
|
||||
log.info("Clear the playlist.")
|
||||
|
|
Loading…
Reference in a new issue