1# -*- coding: utf-8 -*- 2import sys 3import resources.lib.base.common_xbmc as common_xbmc 4import resources.lib.constants as constants 5from resources.lib.actions import actions 6 7# Plugin constants 8version = '2.0' 9plugin = "videoobmc" + version 10addon_id = "plugin.video.videoobmc" 11author = "Bezleputh" 12mail = "carton_ben@yahoo.fr" 13 14#import lxml.html import Element 15#print Element.__file__ 16 17#TODO gestion du logger, gestion des modules via XBMC (activation/desactivation) 18 19#Bug encodge des categories 20#corriger version 1 pour que v2 et v1 donctionnent 21 22if (__name__ == "__main__"): 23 if not (sys.argv[2]): 24 actions[constants.DISPLAY_MENU]()._do() 25 else: 26 params = common_xbmc.parse_params(sys.argv[2]) 27 action = params.get("action") 28 if (action): 29 actions[action]()._do(params) 30 else: 31 common_xbmc.display_error(" ARGV Nothing done.. verify params " + repr(params)) 32