Correzioni varie

This commit is contained in:
mac12m99
2021-04-28 18:31:05 +02:00
parent b933646c12
commit 2fdc231967
2 changed files with 18 additions and 52 deletions
+7 -8
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,8 +379,7 @@ class SearchWindow(xbmcgui.WindowXML):
import traceback
logger.error(traceback.format_exc())
self.count += 1
return self.update(channel, valid, other if other else results)
return channel, valid, other if other else results
def makeItem(self, url):
item = Item().fromurl(url)