Piccole Modifiche a Resume

This commit is contained in:
Alhaziel01
2020-12-10 18:05:40 +01:00
parent 5c2302eb4a
commit 26a8ff7a8c
2 changed files with 4 additions and 3 deletions
+2 -1
View File
@@ -1147,7 +1147,7 @@ def resume_playback(played_time):
Resume = False Resume = False
def __init__(self, *args, **kwargs): def __init__(self, *args, **kwargs):
self.action_exitkeys_id = [xbmcgui.ACTION_BACKSPACE, xbmcgui.ACTION_PREVIOUS_MENU, xbmcgui.ACTION_NAV_BACK] self.action_exitkeys_id = [92, 10]
self.progress_control = None self.progress_control = None
played_time = kwargs.get('played_time') played_time = kwargs.get('played_time')
m, s = divmod(played_time, 60) m, s = divmod(played_time, 60)
@@ -1182,6 +1182,7 @@ def resume_playback(played_time):
xbmc.sleep(100) xbmc.sleep(100)
if not Dialog.Resume: played_time = 0 if not Dialog.Resume: played_time = 0
else: played_time = 0 else: played_time = 0
xbmc.sleep(300)
return played_time return played_time
##### INPUTSTREM ##### ##### INPUTSTREM #####
@@ -6,10 +6,10 @@
<controls> <controls>
<control type="group"> <control type="group">
<animation type="WindowOpen" reversible="false"> <animation type="WindowOpen" reversible="false">
<effect type="fade" start="0" end="100" time="300" /> <effect type="fade" start="0" end="100" time="100" />
</animation> </animation>
<animation type="WindowClose" reversible="false"> <animation type="WindowClose" reversible="false">
<effect type="fade" start="100" end="0" time="300" /> <effect type="fade" start="100" end="0" time="100" />
</animation> </animation>
<right>440</right> <right>440</right>
<top>320</top> <top>320</top>