Fix grafico "cerca negli altri canali"
This commit is contained in:
@@ -300,10 +300,12 @@ class SearchWindow(xbmcgui.WindowXML):
|
|||||||
return channels_list
|
return channels_list
|
||||||
|
|
||||||
def timer(self):
|
def timer(self):
|
||||||
while self.searchActions:
|
while self.searchActions or self.thActions.is_alive():
|
||||||
if self.exit: return
|
if self.exit: return
|
||||||
percent = (float(self.count) / len(self.searchActions)) * 100
|
try:
|
||||||
self.LOADING.setVisible(False)
|
percent = (float(self.count) / len(self.searchActions)) * 100
|
||||||
|
except ZeroDivisionError:
|
||||||
|
percent = 0
|
||||||
self.PROGRESS.setPercent(percent)
|
self.PROGRESS.setPercent(percent)
|
||||||
self.COUNT.setText('%s/%s [%s"]' % (self.count, len(self.searchActions), int(time.time() - self.time)))
|
self.COUNT.setText('%s/%s [%s"]' % (self.count, len(self.searchActions), int(time.time() - self.time)))
|
||||||
if percent == 100:
|
if percent == 100:
|
||||||
@@ -408,6 +410,7 @@ class SearchWindow(xbmcgui.WindowXML):
|
|||||||
return it
|
return it
|
||||||
|
|
||||||
def update(self, channel, valid, results):
|
def update(self, channel, valid, results):
|
||||||
|
self.LOADING.setVisible(False)
|
||||||
if self.exit:
|
if self.exit:
|
||||||
return
|
return
|
||||||
logger.debug('Search on channel', channel)
|
logger.debug('Search on channel', channel)
|
||||||
|
|||||||
Reference in New Issue
Block a user