diff --git a/platformcode/launcher.py b/platformcode/launcher.py index 3381d6ff..04dd7e94 100644 --- a/platformcode/launcher.py +++ b/platformcode/launcher.py @@ -442,7 +442,7 @@ def play_from_library(item): @param item: elemento con información """ logger.info() - logger.debug("item: \n" + item.tostring('\n')) + # logger.debug("item: \n" + item.tostring('\n')) import xbmcgui import xbmcplugin diff --git a/resources/skins/Default/720p/NextDialog.xml b/resources/skins/Default/720p/NextDialog.xml index fa36f5bb..d4f8c04a 100644 --- a/resources/skins/Default/720p/NextDialog.xml +++ b/resources/skins/Default/720p/NextDialog.xml @@ -7,14 +7,15 @@ - + - + 0 + 10 50 45% @@ -47,14 +48,14 @@ 50 auto font30_title - 55 - ddffffff - eeffffff - ddffffff + 30 + 80FFFFFF + FFFFFFFF + 80FFFFFF 22000000 center center - Shortcut/button-fo.png + Shortcut/button-fo.png Shortcut/button-fo.png no @@ -65,14 +66,14 @@ 50 auto font30_title - 55 - ddffffff - eeffffff - ddffffff + 30 + 80FFFFFF + FFFFFFFF + 80FFFFFF 22000000 center center - Shortcut/button-fo.png + Shortcut/button-fo.png Shortcut/button-fo.png no @@ -81,14 +82,14 @@ 50 auto font30_title - 15 - ddffffff - eeffffff - ddffffff + 30 + 80FFFFFF + FFFFFFFF + 80FFFFFF 22000000 center center - Shortcut/button-fo.png + Shortcut/button-fo.png Shortcut/button-fo.png no diff --git a/specials/nextep.py b/specials/nextep.py index 4182b584..c14a33e3 100644 --- a/specials/nextep.py +++ b/specials/nextep.py @@ -37,14 +37,23 @@ def afther_stop(item): if next_file: play_next = False time_limit = time() + 30 - TimeFromEnd = config.get_setting('next_ep_seconds') + time_steps = [20,30,40,50,60] + TimeFromEnd = time_steps[config.get_setting('next_ep_seconds')] + logger.info('TEMPO: '+str(TimeFromEnd)) while not platformtools.is_playing() and time() < time_limit: sleep(1) + + sleep(1) + while platformtools.is_playing() and play_next == False: - Difference = xbmc.Player().getTotalTime() - xbmc.Player().getTime() - if 0 < Difference <= 60: - logger.info('Exit '+str(Difference)) - play_next = True + try: + Total = xbmc.Player().getTotalTime() + Actual = xbmc.Player().getTime() + Difference = Total - Actual + if Total > Actual >= Difference: + play_next = True + except: + break if play_next: play_next = False