summaryrefslogtreecommitdiffstats
path: root/module/plugins
diff options
context:
space:
mode:
Diffstat (limited to 'module/plugins')
-rw-r--r--module/plugins/Crypter.py6
-rw-r--r--module/plugins/internal/ReCaptcha.py (renamed from module/plugins/ReCaptcha.py)0
2 files changed, 4 insertions, 2 deletions
diff --git a/module/plugins/Crypter.py b/module/plugins/Crypter.py
index 920009f44..61370541f 100644
--- a/module/plugins/Crypter.py
+++ b/module/plugins/Crypter.py
@@ -10,9 +10,11 @@ from Base import Base, Retry
class Package:
""" Container that indicates that a new package should be created """
- def __init__(self, name, urls=None):
+ def __init__(self, name, urls=None, folder=None):
self.name = name
self.urls = urls if urls else []
+ self.folder = folder
+
# nested packages
self.packs = []
@@ -36,7 +38,7 @@ class Package:
return u"<CrypterPackage name=%s, links=%s, packs=%s" % (self.name, self.urls, self.packs)
def __hash__(self):
- return hash(self.name) ^ hash(frozenset(self.urls))
+ return hash(self.name) ^ hash(frozenset(self.urls)) ^ hash(self.name)
class PyFileMockup:
""" Legacy class needed by old crypter plugins """
diff --git a/module/plugins/ReCaptcha.py b/module/plugins/internal/ReCaptcha.py
index 6f7ebe22c..6f7ebe22c 100644
--- a/module/plugins/ReCaptcha.py
+++ b/module/plugins/internal/ReCaptcha.py