summaryrefslogtreecommitdiffstats
path: root/module/plugins/crypter
diff options
context:
space:
mode:
authorGravatar Walter Purcaro <vuolter@gmail.com> 2014-10-05 02:27:07 +0200
committerGravatar Walter Purcaro <vuolter@gmail.com> 2014-10-05 02:27:07 +0200
commita9117257f71984d553811a605150acb5d1b499ce (patch)
treea0e55a4b9ba57a94f7a4be06f7eecc4dc44acb51 /module/plugins/crypter
parentSpare __pattern__ cosmetics (diff)
downloadpyload-a9117257f71984d553811a605150acb5d1b499ce.tar.xz
Better import lib header
Diffstat (limited to 'module/plugins/crypter')
-rw-r--r--module/plugins/crypter/DuckCryptInfo.py9
-rw-r--r--module/plugins/crypter/HoerbuchIn.py4
-rw-r--r--module/plugins/crypter/SafelinkingNet.py2
3 files changed, 5 insertions, 10 deletions
diff --git a/module/plugins/crypter/DuckCryptInfo.py b/module/plugins/crypter/DuckCryptInfo.py
index 26b06c1c7..b278f2248 100644
--- a/module/plugins/crypter/DuckCryptInfo.py
+++ b/module/plugins/crypter/DuckCryptInfo.py
@@ -2,7 +2,7 @@
import re
-from module.lib.BeautifulSoup import BeautifulSoup
+from BeautifulSoup import BeautifulSoup
from module.plugins.Crypter import Crypter
@@ -23,12 +23,7 @@ class DuckCryptInfo(Crypter):
def decrypt(self, pyfile):
url = pyfile.url
- # seems we don't need to wait
- #src = self.req.load(str(url))
- #m = re.search(self.TIMER_PATTERN, src)
- #if m:
- # self.logDebug("Sleeping for" % m.group(1))
- # self.setWait(int(m.group(1)) ,False)
+
m = re.match(self.__pattern__, url)
if m is None:
self.fail('Weird error in link')
diff --git a/module/plugins/crypter/HoerbuchIn.py b/module/plugins/crypter/HoerbuchIn.py
index 924ce5d3a..a283ff823 100644
--- a/module/plugins/crypter/HoerbuchIn.py
+++ b/module/plugins/crypter/HoerbuchIn.py
@@ -2,7 +2,7 @@
import re
-from module.lib.BeautifulSoup import BeautifulSoup, BeautifulStoneSoup
+from BeautifulSoup import BeautifulSoup, BeautifulStoneSoup
from module.plugins.Crypter import Crypter
@@ -45,7 +45,7 @@ class HoerbuchIn(Crypter):
url = m.group(0)
self.pyfile.url = url
- src = self.req.load(url, post={"viewed": "adpg"})
+ src = self.load(url, post={"viewed": "adpg"})
links = []
pattern = re.compile("http://www\.hoerbuch\.in/protection/(\w+)/(.*?)\"")
diff --git a/module/plugins/crypter/SafelinkingNet.py b/module/plugins/crypter/SafelinkingNet.py
index e0c165705..d548bdf89 100644
--- a/module/plugins/crypter/SafelinkingNet.py
+++ b/module/plugins/crypter/SafelinkingNet.py
@@ -4,7 +4,7 @@ import re
from pycurl import FOLLOWLOCATION
-from module.lib.BeautifulSoup import BeautifulSoup
+from BeautifulSoup import BeautifulSoup
from module.common.json_layer import json_loads
from module.plugins.Crypter import Crypter