Fix Ricerca globale in caso di errore sul canale
This commit is contained in:
@@ -213,6 +213,7 @@ class SearchWindow(xbmcgui.WindowXML):
|
|||||||
import traceback
|
import traceback
|
||||||
logger.error('error importing/getting search items of ' + channel)
|
logger.error('error importing/getting search items of ' + channel)
|
||||||
logger.error(traceback.format_exc())
|
logger.error(traceback.format_exc())
|
||||||
|
return None, None
|
||||||
|
|
||||||
def search(self):
|
def search(self):
|
||||||
count = 0
|
count = 0
|
||||||
@@ -222,8 +223,9 @@ class SearchWindow(xbmcgui.WindowXML):
|
|||||||
for channel in self.channelsList:
|
for channel in self.channelsList:
|
||||||
if self.exit: break
|
if self.exit: break
|
||||||
module, action = executor.submit(self.getModule, channel).result()
|
module, action = executor.submit(self.getModule, channel).result()
|
||||||
self.moduleDict[channel] = module
|
if module and action:
|
||||||
self.searchActions += action
|
self.moduleDict[channel] = module
|
||||||
|
self.searchActions += action
|
||||||
count += 1
|
count += 1
|
||||||
percent = (float(count) / len(self.channelsList)) * 100
|
percent = (float(count) / len(self.channelsList)) * 100
|
||||||
self.PROGRESS.setPercent(percent)
|
self.PROGRESS.setPercent(percent)
|
||||||
|
|||||||
Reference in New Issue
Block a user