X-Git-Url: https://git.cweiske.de/enigma2.git/blobdiff_plain/c0ebc011a78dd85727b3d91de8cbf271a25b8819..3a044bea307a02147e2d01ad29f07b7348bd7203:/lib/python/Components/PluginComponent.py diff --git a/lib/python/Components/PluginComponent.py b/lib/python/Components/PluginComponent.py index d72e2af3..fff5c475 100644 --- a/lib/python/Components/PluginComponent.py +++ b/lib/python/Components/PluginComponent.py @@ -63,7 +63,7 @@ class PluginComponent: continue # allow single entry not to be a list - if type(plugins) is not list: + if not isinstance(plugins, list): plugins = [ plugins ] for p in plugins: @@ -91,14 +91,14 @@ class PluginComponent: def getPlugins(self, where): """Get list of plugins in a specific category""" - if type(where) is not list: + if not isinstance(where, list): where = [ where ] 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 = [ ]