summaryrefslogtreecommitdiffstats
path: root/module/plugins/crypter/DuckCryptInfo.py
diff options
context:
space:
mode:
authorGravatar Walter Purcaro <vuolter@gmail.com> 2014-04-11 12:19:22 +0200
committerGravatar Stefano <l.stickell@yahoo.it> 2014-04-11 12:19:22 +0200
commit8c18c14ab56541aeae9123ee3b558b70aeabfd09 (patch)
treed6bb0723d4e9e879cf48f7400a6ff15bcd6e489b /module/plugins/crypter/DuckCryptInfo.py
parentRemove bad whitespaces (diff)
downloadpyload-8c18c14ab56541aeae9123ee3b558b70aeabfd09.tar.xz
Use re.match for __pattern__ matches instead re.search
Merges vuolter/pyload@9117005
Diffstat (limited to 'module/plugins/crypter/DuckCryptInfo.py')
-rw-r--r--module/plugins/crypter/DuckCryptInfo.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/module/plugins/crypter/DuckCryptInfo.py b/module/plugins/crypter/DuckCryptInfo.py
index 680ddf222..a35343c1d 100644
--- a/module/plugins/crypter/DuckCryptInfo.py
+++ b/module/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)