X-Git-Url: https://git.cweiske.de/enigma2.git/blobdiff_plain/c46312d7f5ce4113ece4c33595b7192eccadcb1d..a302e0a778e1ea30b76956fd7469cf554eb0fc20:/lib/python/Components/PluginComponent.py diff --git a/lib/python/Components/PluginComponent.py b/lib/python/Components/PluginComponent.py old mode 100644 new mode 100755 index 6e357cd0..5e439fdf --- a/lib/python/Components/PluginComponent.py +++ b/lib/python/Components/PluginComponent.py @@ -46,7 +46,7 @@ class PluginComponent: for pluginname in os_listdir(directory_category): path = directory_category + "/" + pluginname if os_path.isdir(path): - if fileExists(path + "/plugin.pyc") or fileExists(path + "/plugin.py"): + if fileExists(path + "/plugin.pyc") or fileExists(path + "/plugin.pyo") or fileExists(path + "/plugin.py"): try: plugin = my_import('.'.join(["Plugins", c, pluginname, "plugin"])) @@ -96,9 +96,9 @@ class PluginComponent: res = [ ] for x in where: - for p in self.plugins.get(x, [ ]): - res.append(p) - return res + res.extend(self.plugins.get(x, [ ])) + + return res def getPluginsForMenu(self, menuid): res = [ ] @@ -121,7 +121,7 @@ class PluginComponent: wakeup = -1 for p in self.pluginList: current = p.getWakeupTime() - if current > -1 and wakeup < current: + if current > -1 and (wakeup > current or wakeup == -1): wakeup = current return int(wakeup)