show the additional resume dialog if launched from a widget

This commit is contained in:
Marcel van der Veldt 2015-05-03 18:08:07 +02:00
parent cef2b67eba
commit 4d9c845fd3

View file

@ -76,17 +76,19 @@ class PlaybackUtils():
WINDOW.setProperty(playurl+"deleteurl", "") WINDOW.setProperty(playurl+"deleteurl", "")
WINDOW.setProperty(playurl+"deleteurl", deleteurl) WINDOW.setProperty(playurl+"deleteurl", deleteurl)
'''if seekTime != 0: #show the additional resume dialog if launched from a widget
displayTime = str(datetime.timedelta(seconds=seekTime)) if xbmc.getCondVisibility("Window.IsActive(home)"):
display_list = [ self.language(30106) + ' ' + displayTime, self.language(30107)] if seekTime != 0:
resumeScreen = xbmcgui.Dialog() displayTime = str(datetime.timedelta(seconds=seekTime))
resume_result = resumeScreen.select(self.language(30105), display_list) display_list = [ self.language(30106) + ' ' + displayTime, self.language(30107)]
if resume_result == 0: resumeScreen = xbmcgui.Dialog()
WINDOW.setProperty(playurl+"seektime", str(seekTime)) resume_result = resumeScreen.select(self.language(30105), display_list)
if resume_result == 0:
WINDOW.setProperty(playurl+"seektime", str(seekTime))
else:
WINDOW.clearProperty(playurl+"seektime")
else: else:
WINDOW.clearProperty(playurl+"seektime") WINDOW.clearProperty(playurl+"seektime")
else:
WINDOW.clearProperty(playurl+"seektime")'''
if result.get("Type")=="Episode": if result.get("Type")=="Episode":
WINDOW.setProperty(playurl+"refresh_id", result.get("SeriesId")) WINDOW.setProperty(playurl+"refresh_id", result.get("SeriesId"))