From 9d000678c7b737bcd50062f7ec8068a5aa06d4cd Mon Sep 17 00:00:00 2001 From: alfa_addon_10 Date: Tue, 5 Sep 2017 09:31:55 +0200 Subject: [PATCH] reordered if --- plugin.video.alfa/platformcode/launcher.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/plugin.video.alfa/platformcode/launcher.py b/plugin.video.alfa/platformcode/launcher.py index 89f5a4ee..96c40bdb 100755 --- a/plugin.video.alfa/platformcode/launcher.py +++ b/plugin.video.alfa/platformcode/launcher.py @@ -42,17 +42,13 @@ def run(item=None): logger.info(item.tostring()) try: - if item.action == "editor_keymap": - from platformcode import editor_keymap - return editor_keymap.start() - # If item has no action, stops here if item.action == "": logger.info("Item sin accion") return # Action for main menu in channelselector - if item.action == "getmainlist": + elif item.action == "getmainlist": import channelselector # # Check for updates only on first screen @@ -124,6 +120,10 @@ def run(item=None): play_from_library(item) 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 else: