reordered if

This commit is contained in:
alfa_addon_10
2017-09-05 09:31:55 +02:00
parent fc50f541b7
commit 9d000678c7
+5 -5
View File
@@ -42,17 +42,13 @@ def run(item=None):
logger.info(item.tostring()) logger.info(item.tostring())
try: try:
if item.action == "editor_keymap":
from platformcode import editor_keymap
return editor_keymap.start()
# If item has no action, stops here # If item has no action, stops here
if item.action == "": if item.action == "":
logger.info("Item sin accion") logger.info("Item sin accion")
return return
# Action for main menu in channelselector # Action for main menu in channelselector
if item.action == "getmainlist": elif item.action == "getmainlist":
import channelselector import channelselector
# # Check for updates only on first screen # # Check for updates only on first screen
@@ -124,6 +120,10 @@ def run(item=None):
play_from_library(item) play_from_library(item)
return return
elif item.action == "editor_keymap":
from platformcode import editor_keymap
return editor_keymap.start()
# Action in certain channel specified in "action" and "channel" parameters # Action in certain channel specified in "action" and "channel" parameters
else: else: