From 1bdbc18926ce3a40d04d4be0c0274312c288d78a Mon Sep 17 00:00:00 2001 From: mac12m99 <10120390+mac12m99@users.noreply.github.com> Date: Sat, 21 Aug 2021 16:55:18 +0200 Subject: [PATCH] Test per freeze kodi da videoteca --- platformcode/platformtools.py | 5 +++++ platformcode/xbmc_videolibrary.py | 1 - 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/platformcode/platformtools.py b/platformcode/platformtools.py index 37e68a4e..91e49d20 100644 --- a/platformcode/platformtools.py +++ b/platformcode/platformtools.py @@ -1780,7 +1780,12 @@ def prevent_busy(item): if not item.autoplay and not item.window: if item.globalsearch: xbmc.Player().play(os.path.join(config.get_runtime_path(), "resources", "kod.mp4")) else: xbmcplugin.setResolvedUrl(int(sys.argv[1]), True, xbmcgui.ListItem(path=os.path.join(config.get_runtime_path(), "resources", "kod.mp4"))) + # first wait the fake video to start + while not is_playing(): + xbmc.sleep(10) + # then wait a little more xbmc.sleep(200) + # and then stop it xbmc.Player().stop() # xbmc.executebuiltin('Action(Stop)') # xbmc.sleep(500) diff --git a/platformcode/xbmc_videolibrary.py b/platformcode/xbmc_videolibrary.py index 1e77e02b..43222a83 100644 --- a/platformcode/xbmc_videolibrary.py +++ b/platformcode/xbmc_videolibrary.py @@ -74,7 +74,6 @@ def mark_auto_as_watched(item): # check for next Episode if next_episode and sync and time_from_end >= difference: - support.dbg() nextdialog = NextDialog(ND, config.get_runtime_path()) while platformtools.is_playing() and not nextdialog.is_exit(): xbmc.sleep(100)