summaryrefslogtreecommitdiffstats
path: root/module/file_list.py
diff options
context:
space:
mode:
Diffstat (limited to 'module/file_list.py')
-rw-r--r--module/file_list.py8
1 files changed, 6 insertions, 2 deletions
diff --git a/module/file_list.py b/module/file_list.py
index 9d7260889..bb04ae898 100644
--- a/module/file_list.py
+++ b/module/file_list.py
@@ -401,8 +401,12 @@ class PyLoadFile():
self.active = False
pluginName = self._get_my_plugin()
if pluginName:
- self.modul = __import__(pluginName)
- pluginClass = getattr(self.modul, self.modul.__name__)
+ for dir in ["hoster", "decrypter", "container"]:
+ try:
+ self.modul = __import__("%s.%s" % (dir, pluginName), globals(), locals(), [pluginName], -1)
+ except:
+ pass
+ pluginClass = getattr(self.modul, pluginName)
else:
self.modul = module.Plugin
pluginClass = module.Plugin.Plugin