Fix e migliorie

This commit is contained in:
Alhaziel01
2020-10-01 14:53:52 +02:00
parent 8a53a37cc0
commit 92bc6e2ddf
4 changed files with 9 additions and 9 deletions

View File

@@ -945,15 +945,11 @@ def set_player(item, xlistitem, mediaurl, view, strm, nfo_path=None, head_nfo=No
from platformcode import xbmc_videolibrary
xbmc_videolibrary.mark_auto_as_watched(item, nfo_path, head_nfo, item_nfo)
if 'paramount' in item.title.lower():
# from core.support import dbg;dbg()
from time import time, sleep
start_time = time()
while not is_playing() or (time() - start_time) > 5:
continue
# for cases where the audio playback window appears in place of the video one
if item.focusOnVideoPlayer:
while is_playing and xbmcgui.getCurrentWindowId() != 12006:
continue
xbmcgui.Window(12006).show()
xbmc.sleep(500)
xbmcgui.Window(12005).show()