From b2d3429ecae4cc7798d993b6cc768dd6ccd048ab Mon Sep 17 00:00:00 2001 From: Alhaziel01 Date: Mon, 21 Dec 2020 17:35:41 +0100 Subject: [PATCH] Fix Ricerca Globale per Torrent --- specials/globalsearch.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/specials/globalsearch.py b/specials/globalsearch.py index 3d9211df..21bfedb0 100644 --- a/specials/globalsearch.py +++ b/specials/globalsearch.py @@ -746,9 +746,10 @@ class SearchWindow(xbmcgui.WindowXMLDialog): server.window = True server.globalsearch = True platformtools.prevent_busy(server) - run(server) + Thread(target=run, args=[server]).start() + # run(server) try: - while not xbmc.Player().getTime() > 0: + while not platformtools.is_playing() or not xbmc.Player().getTime() > 0: xbmc.sleep(500) self.close() xbmc.sleep(500)