downloads: fix when autoplay is enabled

This commit is contained in:
ilmich
2024-04-27 20:41:54 +02:00
parent 7ab99f0bb7
commit 7cd271e4d3

View File

@@ -809,7 +809,7 @@ def select_server(item):
# seleccion = platformtools.dialog_select(config.get_localized_string(70192), ["Auto"] + [s.serverName for s in play_items])
if seleccion != -1: # not canceled
if seleccion.action != 'auto':
if seleccion and seleccion.action != 'auto':
update_json(item.path, {
"downloadServer": {"url": seleccion.url, "server": seleccion.server}})
return seleccion