def checkSkinResolution(): printl("", "__init__::checkSkinResolution", "S") boxResolution = str(getBoxResolution()) printl("boxResolution: " + boxResolution, "__common__::checkSkinResolution", "S") skinResolution = str(getSkinResolution()) printl("skinResolution: " + skinResolution, "__common__::checkSkinResolution", "S") if boxResolution == "HD" and skinResolution == "FHD": # if there is setup another FHD skin but the box skin is HD we switch automatically to default HD skin to avoid wrong screen size # which leads to unconfigurable dreamplex skinfolder = "/usr/lib/enigma2/python/Plugins/Extensions/DreamPlex/skins/default" printl( "switching to default due to mismatch of box and skin resolution!") setSkinFolder(currentSkinFolder=skinfolder) printl("current skinfolder: " + skinfolder, "__common__::checkSkinResolution", "S") configXml = getXmlContent(skinfolder + "/params") Singleton().getSkinParamsInstance(configXml) printl("", "__init__::checkSkinResolution", "C")
def registerSkinParamsInstance(): printl("", "__init__::registerSkinParamsInstance", "S") boxResolution = str(getBoxResolution()) skinName = str(config.plugins.dreamplex.skin.value) printl("current skin: " + skinName, "__common__::registerSkinParamsInstance", "S") # if we are our default we switch automatically between the resolutions if skinName == "default": if boxResolution == "FHD": skinfolder = "/usr/lib/enigma2/python/Plugins/Extensions/DreamPlex/skins/" + config.plugins.dreamplex.skin.value + "_FHD" else: skinfolder = "/usr/lib/enigma2/python/Plugins/Extensions/DreamPlex/skins/" + config.plugins.dreamplex.skin.value else: skinfolder = "/usr/lib/enigma2/python/Plugins/Extensions/DreamPlex/skins/" + config.plugins.dreamplex.skin.value setSkinFolder(currentSkinFolder=skinfolder) printl("current skinfolder: " + skinfolder, "__common__::checkSkinResolution", "S") configXml = getXmlContent(skinfolder + "/params") Singleton().getSkinParamsInstance(configXml) printl("", "__init__::registerSkinParamsInstance", "C")
def Plugins(**kwargs): myList = [] boxResolution = getBoxResolution() if boxResolution == "FHD": myList.append(PluginDescriptor(name = "DreamPlex", description = "plex client for enigma2", where = [PluginDescriptor.WHERE_PLUGINMENU], icon = "pluginLogoHD.png", fnc=main)) else: myList.append(PluginDescriptor(name = "DreamPlex", description = "plex client for enigma2", where = [PluginDescriptor.WHERE_PLUGINMENU], icon = "pluginLogo.png", fnc=main)) myList.append(PluginDescriptor(where = PluginDescriptor.WHERE_AUTOSTART, fnc = Autostart)) myList.append(PluginDescriptor(where = PluginDescriptor.WHERE_SESSIONSTART, fnc = sessionStart)) if config.plugins.dreamplex.showInMainMenu.value: myList.append(PluginDescriptor(name="DreamPlex", description=_("plex client for enigma2"), where = [PluginDescriptor.WHERE_MENU], fnc=menu_dreamplex)) return myList
def checkSkinResolution(): printl("", "__init__::checkSkinResolution", "S") boxResolution = str(getBoxResolution()) printl("boxResolution: " + boxResolution, "__common__::checkSkinResolution", "S") skinResolution = str(getSkinResolution()) printl("skinResolution: " + skinResolution, "__common__::checkSkinResolution", "S") if boxResolution == "HD" and skinResolution == "FHD": # if there is setup another FHD skin but the box skin is HD we switch automatically to default HD skin to avoid wrong screen size # which leads to unconfigurable dreamplex skinfolder = "/usr/lib/enigma2/python/Plugins/Extensions/DreamPlex/skins/default" printl("switching to default due to mismatch of box and skin resolution!") setSkinFolder(currentSkinFolder=skinfolder) printl("current skinfolder: " + skinfolder, "__common__::checkSkinResolution", "S") configXml = getXmlContent(skinfolder + "/params") Singleton().getSkinParamsInstance(configXml) printl("", "__init__::checkSkinResolution", "C")
def Plugins(**kwargs): myList = [] boxResolution = getBoxResolution() if boxResolution == "FHD": myList.append( PluginDescriptor( name="DreamPlex", description="plex client for enigma2", where=[PluginDescriptor.WHERE_PLUGINMENU], icon="pluginLogoHD.png", fnc=main, ) ) else: myList.append( PluginDescriptor( name="DreamPlex", description="plex client for enigma2", where=[PluginDescriptor.WHERE_PLUGINMENU], icon="pluginLogo.png", fnc=main, ) ) myList.append(PluginDescriptor(where=PluginDescriptor.WHERE_AUTOSTART, fnc=Autostart)) myList.append(PluginDescriptor(where=PluginDescriptor.WHERE_SESSIONSTART, fnc=sessionStart)) if config.plugins.dreamplex.showInMainMenu.value: myList.append( PluginDescriptor( name="DreamPlex", description=_("plex client for enigma2"), where=[PluginDescriptor.WHERE_MENU], fnc=menu_dreamplex, ) ) return myList