ricerca: corretti aggiunta in videoteca/download
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
|
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
|
||||||
<window>
|
<window>
|
||||||
<depth>0.52</depth>
|
<zorder>0.52</zorder>
|
||||||
<coordinates>
|
<coordinates>
|
||||||
<left>0</left>
|
<left>0</left>
|
||||||
<top>0</top>
|
<top>0</top>
|
||||||
|
|||||||
@@ -570,7 +570,7 @@ class SearchWindow(xbmcgui.WindowXML):
|
|||||||
return
|
return
|
||||||
|
|
||||||
if item.action not in ['findvideos', 'episodios']: # special items (add to videolibrary, download ecc.)
|
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)
|
busy(False)
|
||||||
return
|
return
|
||||||
|
|
||||||
@@ -594,6 +594,7 @@ class SearchWindow(xbmcgui.WindowXML):
|
|||||||
hd = []
|
hd = []
|
||||||
sd = []
|
sd = []
|
||||||
unknown = []
|
unknown = []
|
||||||
|
other = []
|
||||||
for i, item in enumerate(servers):
|
for i, item in enumerate(servers):
|
||||||
if item.server:
|
if item.server:
|
||||||
it = self.makeItem(item.tourl())
|
it = self.makeItem(item.tourl())
|
||||||
@@ -615,7 +616,9 @@ class SearchWindow(xbmcgui.WindowXML):
|
|||||||
unknown.append(it)
|
unknown.append(it)
|
||||||
elif not item.action:
|
elif not item.action:
|
||||||
self.getControl(QUALITYTAG).setText(item.fulltitle)
|
self.getControl(QUALITYTAG).setText(item.fulltitle)
|
||||||
|
else:
|
||||||
|
it = self.makeItem(item.tourl())
|
||||||
|
other.append(it)
|
||||||
|
|
||||||
uhd.sort(key=lambda it: it.getProperty('index'))
|
uhd.sort(key=lambda it: it.getProperty('index'))
|
||||||
fhd.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'))
|
sd.sort(key=lambda it: it.getProperty('index'))
|
||||||
unknown.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:
|
if not serverlist:
|
||||||
serverlist = [xbmcgui.ListItem(config.get_localized_string(60347))]
|
serverlist = [xbmcgui.ListItem(config.get_localized_string(60347))]
|
||||||
serverlist[0].setProperty('thumb', channelselector.get_thumb('nofolder.png'))
|
serverlist[0].setProperty('thumb', channelselector.get_thumb('nofolder.png'))
|
||||||
|
|||||||
Reference in New Issue
Block a user