mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2024-12-25 10:16: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())
|
control = int(xbmcgui.Window(10106).getFocusId())
|
||||||
if control == 1002: # Start from beginning
|
if control == 1002: # Start from beginning
|
||||||
log.info("Resume dialog: Start from beginning selected.")
|
log.info("Resume dialog: Start from beginning selected.")
|
||||||
window('emby.resume', value="true")
|
|
||||||
else:
|
|
||||||
window('emby.resume', clear=True)
|
window('emby.resume', clear=True)
|
||||||
|
else:
|
||||||
|
window('emby.resume', value="true")
|
||||||
|
|
||||||
elif isPlaying and not window('emby.external_check'):
|
elif isPlaying and not window('emby.external_check'):
|
||||||
time = player.getTime()
|
time = player.getTime()
|
||||||
|
|
|
@ -114,7 +114,7 @@ class PlaybackUtils(object):
|
||||||
elif not resume:
|
elif not resume:
|
||||||
seektime = 0
|
seektime = 0
|
||||||
else:
|
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:
|
if force_transcode:
|
||||||
log.info("Clear the playlist.")
|
log.info("Clear the playlist.")
|
||||||
|
|
Loading…
Reference in a new issue