Small correction to resume behavior

This commit is contained in:
angelblue05 2018-03-23 05:17:28 -05:00
parent da7094a9de
commit 36b8582226
2 changed files with 3 additions and 3 deletions

View file

@ -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()

View file

@ -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.")