summaryrefslogtreecommitdiffstats
path: root/pyload/plugins/crypter/DuckCryptInfo.py
diff options
context:
space:
mode:
Diffstat (limited to 'pyload/plugins/crypter/DuckCryptInfo.py')
-rw-r--r--pyload/plugins/crypter/DuckCryptInfo.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/pyload/plugins/crypter/DuckCryptInfo.py b/pyload/plugins/crypter/DuckCryptInfo.py
index 680ddf222..a35343c1d 100644
--- a/pyload/plugins/crypter/DuckCryptInfo.py
+++ b/pyload/plugins/crypter/DuckCryptInfo.py
@@ -24,7 +24,7 @@ class DuckCryptInfo(Crypter):
#if found:
# self.logDebug("Sleeping for" % found.group(1))
# self.setWait(int(found.group(1)) ,False)
- found = re.search(self.__pattern__, url)
+ found = re.match(self.__pattern__, url)
if not found:
self.fail('Weird error in link')
if str(found.group(1)) == "link":
@@ -35,7 +35,7 @@ class DuckCryptInfo(Crypter):
def handleFolder(self, found):
src = self.load("http://duckcrypt.info/ajax/auth.php?hash=" + str(found.group(2)))
- found = re.search(self.__pattern__, src)
+ found = re.match(self.__pattern__, src)
self.logDebug("Redirectet to " + str(found.group(0)))
src = self.load(str(found.group(0)))
soup = BeautifulSoup(src)