Fix Ricerca Globale

This commit is contained in:
Alhaziel01
2021-04-28 11:15:17 +02:00
parent f94be667ad
commit b933646c12
3 changed files with 11 additions and 9 deletions
+8 -7
View File
@@ -325,12 +325,12 @@ class SearchWindow(xbmcgui.WindowXML):
for searchAction in self.searchActions:
if self.exit: return
self.search_threads.append(executor.submit(self.get_channel_results, searchAction))
for ch in futures.as_completed(self.search_threads):
self.count += 1
if self.exit: return
if ch.result():
channel, valid, other = ch.result()
self.update(channel, valid, other)
# for ch in futures.as_completed(self.search_threads):
# self.count += 1
# if self.exit: return
# if ch.result():
# channel, valid, other = ch.result()
# self.update(channel, valid, other)
except:
import traceback
logger.error(traceback.format_exc())
@@ -379,7 +379,8 @@ class SearchWindow(xbmcgui.WindowXML):
import traceback
logger.error(traceback.format_exc())
return channel, valid, other if other else results
self.count += 1
return self.update(channel, valid, other if other else results)
def makeItem(self, url):
item = Item().fromurl(url)