summaryrefslogtreecommitdiffstats
path: root/module/plugins/Crypter.py
diff options
context:
space:
mode:
authorGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2012-01-01 18:01:25 +0100
committerGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2012-01-01 18:01:25 +0100
commit5a3e5a8228e4c5421b44d18c9c9ae2f1fe616400 (patch)
treebf70780213abfe9dcf938f8ca7d55274db7cd3fa /module/plugins/Crypter.py
parentHappy new Year ! (diff)
downloadpyload-5a3e5a8228e4c5421b44d18c9c9ae2f1fe616400.tar.xz
fixed imports
Diffstat (limited to 'module/plugins/Crypter.py')
-rw-r--r--module/plugins/Crypter.py7
1 files changed, 3 insertions, 4 deletions
diff --git a/module/plugins/Crypter.py b/module/plugins/Crypter.py
index 7c76afee7..c645f2a72 100644
--- a/module/plugins/Crypter.py
+++ b/module/plugins/Crypter.py
@@ -159,8 +159,8 @@ class Crypter(Base):
self.decrypt()
result = self.convertPackages()
else:
- if not has_method(cls, "decryptFile"):
- self.logDebug("No Decrypting method was overwritten in plugin %s" % self.__name__)
+ if not has_method(cls, "decryptFile") or urls:
+ self.logDebug("No suited decrypting method was overwritten in plugin")
result = []
if has_method(cls, "decryptFile"):
@@ -199,7 +199,7 @@ class Crypter(Base):
for url in urls:
path = None
if url.startswith("http"):
- path = None # skip directly
+ pass
elif exists(url):
path = url
elif exists(self.core.path(url)):
@@ -212,7 +212,6 @@ class Crypter(Base):
f.close()
except IOError, e:
self.logError("IOError", e)
- remote.append(url)
else:
remote.append(url)