From 52d2a1f1a339ab2d02d8dd2ab7751c5324e31c81 Mon Sep 17 00:00:00 2001 From: Alhaziel01 Date: Thu, 14 Jan 2021 16:39:05 +0100 Subject: [PATCH] Miglioria Info Window --- platformcode/xbmc_info_window.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/platformcode/xbmc_info_window.py b/platformcode/xbmc_info_window.py index 1fbbd37e..fd514ee5 100644 --- a/platformcode/xbmc_info_window.py +++ b/platformcode/xbmc_info_window.py @@ -50,11 +50,13 @@ class InfoWindow(xbmcgui.WindowXMLDialog): def onInit(self): if config.get_platform(True)['num_version'] < 18: self.setCoordinateResolution(2) + results = [] with futures.ThreadPoolExecutor() as executor: for i, result in enumerate(self.results): - logger.debug(result) if ('seriesName' in result and result['seriesName']) or ('name' in result and result['name']) or ('title' in result and result['title']): - self.items += [executor.submit(self.make_items, i, result).result()] + results.append(executor.submit(self.make_items, i, result)) + for res in futures.as_completed(results): + self.items.append(res.result()) self.items.sort(key=lambda it: int(it.getProperty('position'))) self.getControl(SELECT).addItems(self.items)