summaryrefslogtreecommitdiffstats
path: root/module/file_list.py
diff options
context:
space:
mode:
authorGravatar mkaay <mkaay@mkaay.de> 2009-12-27 00:20:21 +0100
committerGravatar mkaay <mkaay@mkaay.de> 2009-12-27 00:20:21 +0100
commit8e87787753b2e049917a5491727d285b1c5a7095 (patch)
tree9b23fb14b0f1270edc4582758bcf3a39cfd97b67 /module/file_list.py
parentcloses #42 (diff)
downloadpyload-8e87787753b2e049917a5491727d285b1c5a7095.tar.xz
closes #13
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