Fix Ricerca globale in caso di errore sul canale

This commit is contained in:
Alhaziel01
2020-11-27 20:01:11 +01:00
parent 3a86eb22c7
commit c5c1bb2221

View File

@@ -213,6 +213,7 @@ class SearchWindow(xbmcgui.WindowXML):
import traceback
logger.error('error importing/getting search items of ' + channel)
logger.error(traceback.format_exc())
return None, None
def search(self):
count = 0
@@ -222,8 +223,9 @@ class SearchWindow(xbmcgui.WindowXML):
for channel in self.channelsList:
if self.exit: break
module, action = executor.submit(self.getModule, channel).result()
self.moduleDict[channel] = module
self.searchActions += action
if module and action:
self.moduleDict[channel] = module
self.searchActions += action
count += 1
percent = (float(count) / len(self.channelsList)) * 100
self.PROGRESS.setPercent(percent)