From bdd9ae1d94d290b1010d01f64fc79895e8d3f372 Mon Sep 17 00:00:00 2001 From: marco <10120390+mac12m99@users.noreply.github.com> Date: Sat, 12 Dec 2020 14:50:51 +0100 Subject: [PATCH] ricerca: corretti aggiunta in videoteca/download --- resources/skins/Default/720p/GlobalSearch.xml | 2 +- specials/globalsearch.py | 9 ++++++--- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/resources/skins/Default/720p/GlobalSearch.xml b/resources/skins/Default/720p/GlobalSearch.xml index c197dc3a..839d5c41 100644 --- a/resources/skins/Default/720p/GlobalSearch.xml +++ b/resources/skins/Default/720p/GlobalSearch.xml @@ -1,6 +1,6 @@ - 0.52 + 0.52 0 0 diff --git a/specials/globalsearch.py b/specials/globalsearch.py index 0841e2c9..a65b9490 100644 --- a/specials/globalsearch.py +++ b/specials/globalsearch.py @@ -570,7 +570,7 @@ class SearchWindow(xbmcgui.WindowXML): return if item.action not in ['findvideos', 'episodios']: # special items (add to videolibrary, download ecc.) - xbmc.executebuiltin("RunPlugin(plugin://plugin.video.kod/?" + item_url) + xbmc.executebuiltin("RunPlugin(plugin://plugin.video.kod/?" + item_url + ")") busy(False) return @@ -594,6 +594,7 @@ class SearchWindow(xbmcgui.WindowXML): hd = [] sd = [] unknown = [] + other = [] for i, item in enumerate(servers): if item.server: it = self.makeItem(item.tourl()) @@ -615,7 +616,9 @@ class SearchWindow(xbmcgui.WindowXML): unknown.append(it) elif not item.action: self.getControl(QUALITYTAG).setText(item.fulltitle) - + else: + it = self.makeItem(item.tourl()) + other.append(it) uhd.sort(key=lambda it: it.getProperty('index')) fhd.sort(key=lambda it: it.getProperty('index')) @@ -623,7 +626,7 @@ class SearchWindow(xbmcgui.WindowXML): sd.sort(key=lambda it: it.getProperty('index')) unknown.sort(key=lambda it: it.getProperty('index')) - serverlist = uhd + fhd + hd + sd + unknown + serverlist = uhd + fhd + hd + sd + unknown + other if not serverlist: serverlist = [xbmcgui.ListItem(config.get_localized_string(60347))] serverlist[0].setProperty('thumb', channelselector.get_thumb('nofolder.png'))