Fix Episodio Successivo

This commit is contained in:
Alhaziel
2020-01-09 18:42:08 +01:00
parent 064a8a7fa9
commit 72512f9d80
+6 -3
View File
@@ -58,11 +58,12 @@ def afther_stop(item):
Total = xbmc.Player().getTotalTime() Total = xbmc.Player().getTotalTime()
Actual = xbmc.Player().getTime() Actual = xbmc.Player().getTime()
Difference = Total - Actual Difference = Total - Actual
if Total > Actual >= Difference: if Total > TimeFromEnd >= Difference:
play_next = True play_next = True
except: except:
break break
# from core.support import dbg; dbg()
if play_next: if play_next:
play_next = False play_next = False
season_ep = next_file.split('.')[0] season_ep = next_file.split('.')[0]
@@ -89,7 +90,8 @@ def afther_stop(item):
if nextDialog.stillwatching or nextDialog.continuewatching: if nextDialog.stillwatching or nextDialog.continuewatching:
xbmc.Player().stop() xbmc.Player().stop()
if normal_window: if normal_window:
sleep(0.5) sleep(1)
logger.info('BACK STILL')
xbmc.executebuiltin('Action(Back)') xbmc.executebuiltin('Action(Back)')
else: else:
item.no_window = True item.no_window = True
@@ -97,7 +99,8 @@ def afther_stop(item):
play_from_library(item) play_from_library(item)
else: else:
if normal_window: if normal_window:
sleep(0.5) sleep(1)
logger.info('BACK NOT STILL')
xbmc.executebuiltin('Action(Back)') xbmc.executebuiltin('Action(Back)')
else: else:
item.no_window = True item.no_window = True