From 13f081ae909179ef28b020588fa3f3ea42dc8d95 Mon Sep 17 00:00:00 2001 From: Alhaziel01 Date: Fri, 11 Dec 2020 17:16:59 +0100 Subject: [PATCH] Probabile Fix Ricerca Globale --- platformcode/globalsearch.py | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/platformcode/globalsearch.py b/platformcode/globalsearch.py index e67b94ff..40e46c4b 100644 --- a/platformcode/globalsearch.py +++ b/platformcode/globalsearch.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- -import xbmc, xbmcgui, sys, channelselector, time +import xbmc, xbmcgui, sys, channelselector, time, gc from core.support import dbg, typo, tmdb from core.item import Item from core import channeltools, servertools, scrapertools @@ -24,9 +24,12 @@ def set_workers(): return workers def Search(*args): - xbmc.executebuiltin('Dialog.Close(all,true)') - SearchWindow('GlobalSearch.xml', config.get_runtime_path()).start(*args) - xbmc.sleep(600) + xbmc.executebuiltin('Dialog.Close(all)') + w = SearchWindow('GlobalSearch.xml', config.get_runtime_path()) + w.start(*args) + del w + gc.collect() + # xbmc.sleep(600) # Actions LEFT = 1