summaryrefslogtreecommitdiffstats
path: root/pyload/threads
diff options
context:
space:
mode:
authorGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2013-09-17 14:23:28 +0200
committerGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2013-09-17 14:23:28 +0200
commitd53f3b99a1f5176caa94fcbdd3e3fe59f346ece1 (patch)
tree52280c0176566f27d225efcf6ae75f5c28c61a88 /pyload/threads
parentstub class for content provider (diff)
downloadpyload-d53f3b99a1f5176caa94fcbdd3e3fe59f346ece1.tar.xz
more fixes for py2.5
Diffstat (limited to 'pyload/threads')
-rw-r--r--pyload/threads/InfoThread.py16
1 files changed, 5 insertions, 11 deletions
diff --git a/pyload/threads/InfoThread.py b/pyload/threads/InfoThread.py
index f3aad5bb6..fb4bdf11e 100644
--- a/pyload/threads/InfoThread.py
+++ b/pyload/threads/InfoThread.py
@@ -57,7 +57,7 @@ class InfoThread(BaseThread):
data = self.decrypt(name, urls)
except:
print_exc()
- self.m.log.error("Could not decrypt container.")
+ self.m.log.error("Could not decrypt content.")
data = []
accumulate(data, plugins)
@@ -148,15 +148,9 @@ class InfoThread(BaseThread):
result = [(url, 0, 3, url) for url in urls]
cb(pluginname, result)
-
def decrypt(self, plugin, urls):
- self.m.log.debug("Pre decrypting %s" % plugin)
+ self.m.log.debug("Decrypting %s" % plugin)
klass = self.m.core.pluginManager.loadClass("crypter", plugin)
-
- # only decrypt files
- if has_method(klass, "decryptFile"):
- urls = klass.decrypt(urls)
- data, crypter = self.m.core.pluginManager.parseUrls(urls)
- return data
-
- return []
+ urls = klass.decrypt(self.core, urls)
+ data, crypter = self.m.core.pluginManager.parseUrls(urls)
+ return data + crypter