ricerca: corretti aggiunta in videoteca/download

This commit is contained in:
marco
2020-12-12 14:50:51 +01:00
parent 402a56a0ed
commit bdd9ae1d94
2 changed files with 7 additions and 4 deletions

View File

@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<window>
<depth>0.52</depth>
<zorder>0.52</zorder>
<coordinates>
<left>0</left>
<top>0</top>

View File

@@ -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'))