Downloader: sistemata finestra selezione, fix riproduzione da sezione videoteca e ottimizzazione
This commit is contained in:
@@ -312,7 +312,7 @@ def findvideos(item, itemlist=[]):
|
||||
p_dialog.update(100)
|
||||
p_dialog.close()
|
||||
|
||||
serverlist = [s for s in itemlist if s.server]
|
||||
serverlist = [s for s in itemlist if s.server or s.contentChannel == 'local']
|
||||
|
||||
if itemlist and not serverlist:
|
||||
platformtools.render_items(itemlist, item)
|
||||
|
||||
@@ -1810,7 +1810,7 @@ def channelImport(channelId):
|
||||
channel = None
|
||||
return channel
|
||||
|
||||
def serverWindow(item, itemlist):
|
||||
def serverWindow(item, itemlist, runDirectly=True):
|
||||
from core import db
|
||||
LEFT = 1
|
||||
RIGHT = 2
|
||||
@@ -2027,6 +2027,8 @@ def serverWindow(item, itemlist):
|
||||
selection = ServerSkinWindow("DialogSelect.xml", config.get_runtime_path()).start(item, itemlist)
|
||||
else:
|
||||
selection = ServerWindow('Servers.xml', config.get_runtime_path()).start(item, itemlist)
|
||||
if selection != -1:
|
||||
if selection != -1 and runDirectly:
|
||||
from platformcode.launcher import run
|
||||
run(selection)
|
||||
else:
|
||||
return selection
|
||||
Reference in New Issue
Block a user