Fix Autoplay e Server pop-up
This commit is contained in:
@@ -462,10 +462,12 @@ def findvideos(item):
|
||||
p_dialog.update(100)
|
||||
p_dialog.close()
|
||||
|
||||
if not itemlist:
|
||||
serverlist = [s for s in itemlist if s.server]
|
||||
|
||||
if not serverlist:
|
||||
platformtools.dialog_notification(config.get_localized_string(20000), config.get_localized_string(60347))
|
||||
elif len(itemlist) == 1 or len(itemlist) > 1 and not itemlist[1].server:
|
||||
run(itemlist[0].clone(no_return=True))
|
||||
elif len(serverlist) == 1:
|
||||
run(serverlist[0].clone(no_return=True))
|
||||
else:
|
||||
platformtools.serverWindow(item, itemlist)
|
||||
|
||||
|
||||
@@ -1838,6 +1838,8 @@ def serverWindow(item, itemlist):
|
||||
it = xbmcgui.ListItem(title)
|
||||
if videoitem.ch_name:
|
||||
it.setLabel2(videoitem.ch_name)
|
||||
else:
|
||||
it.setLabel2(videoitem.plot)
|
||||
it.setArt({'thumb': videoitem.thumbnail})
|
||||
items.append(it)
|
||||
self.list.reset()
|
||||
@@ -1847,7 +1849,12 @@ def serverWindow(item, itemlist):
|
||||
def onClick(self, control):
|
||||
if control == 6:
|
||||
self.selection = self.itemlist[self.list.getSelectedPosition()]
|
||||
self.close()
|
||||
if not self.selection.action:
|
||||
it = self.selection
|
||||
self.selection = -1
|
||||
dialog_textviewer(it.title, it.plot)
|
||||
else:
|
||||
self.close()
|
||||
if control == 5:
|
||||
self.close()
|
||||
elif control == 7:
|
||||
|
||||
Reference in New Issue
Block a user