Skip to content

Commit

Permalink
Fix number of results
Browse files Browse the repository at this point in the history
  • Loading branch information
detobel36 committed Mar 26, 2023
1 parent edcc051 commit c4adbe7
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions plugin.video.vstream/resources/lib/search.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,9 +83,9 @@ def _progressInit(self):
if not self.autoPlayVideo:
self.progress_ = progress().VScreate(large=True)

def _progressUpdate(self):
def _progressUpdate(self, numberResult):
if not self.autoPlayVideo and not self._progressIsCancel():
numberResult = sum(map(len, self.allVideoLink.values()))
# numberResult = sum(map(len, self.allVideoLink.values()))
message = "\n"
message += (self.addons.VSlang(31209) % numberResult)
message += "\n"
Expand Down Expand Up @@ -295,7 +295,7 @@ def _quickSearchForPlugin(self, plugin, searchInfo):
VSlog("No result for: " + str(pluginId))

self.listRemainingPlugins.remove(pluginName)
self._progressUpdate()
self._progressUpdate(sum(map(len, self.allVideoLink.values())))

if len(self.listRemainingPlugins) == 0 and self.autoPlayVideo:
self.eventFindOneLink.set()
Expand Down Expand Up @@ -466,7 +466,7 @@ def _pluginSearch(self, plugin, sSearchText, updateProcess = False):
function(sUrl)
if updateProcess:
self.listRemainingPlugins.remove(plugin['name'])
self._progressUpdate()
self._progressUpdate(sum(map(len, cGui().getSearchResult().values())))

VSlog('Load Search: ' + str(plugin['identifier']))
except Exception as e:
Expand Down

0 comments on commit c4adbe7

Please sign in to comment.