summaryrefslogtreecommitdiffstats
path: root/pyload/plugins/crypter/DuckCryptInfo.py
diff options
context:
space:
mode:
authorGravatar Stefano <l.stickell@yahoo.it> 2013-07-21 15:03:21 +0200
committerGravatar Stefano <l.stickell@yahoo.it> 2013-07-21 15:43:18 +0200
commitff581d9a4a1637b4e06bcbe77d67591f9279fe1b (patch)
tree0be4883b505aecc6920bdfccfcc9672636d59691 /pyload/plugins/crypter/DuckCryptInfo.py
parentImproved .gitattributes (diff)
downloadpyload-ff581d9a4a1637b4e06bcbe77d67591f9279fe1b.tar.xz
Fixed PEP 8 violations in Crypters
Diffstat (limited to 'pyload/plugins/crypter/DuckCryptInfo.py')
-rw-r--r--pyload/plugins/crypter/DuckCryptInfo.py9
1 files changed, 4 insertions, 5 deletions
diff --git a/pyload/plugins/crypter/DuckCryptInfo.py b/pyload/plugins/crypter/DuckCryptInfo.py
index 4886d24db..64302c800 100644
--- a/pyload/plugins/crypter/DuckCryptInfo.py
+++ b/pyload/plugins/crypter/DuckCryptInfo.py
@@ -4,6 +4,7 @@ import re
from module.lib.BeautifulSoup import BeautifulSoup
from module.plugins.Crypter import Crypter
+
class DuckCryptInfo(Crypter):
__name__ = "DuckCryptInfo"
__type__ = "container"
@@ -14,7 +15,7 @@ class DuckCryptInfo(Crypter):
__author_mail__ = ("soilfiction@gmail.com")
TIMER_PATTERN = r'<span id="timer">(.*)</span>'
-
+
def decrypt(self, pyfile):
url = pyfile.url
# seems we don't need to wait
@@ -31,10 +32,9 @@ class DuckCryptInfo(Crypter):
else:
self.handleFolder(found)
-
-
+
def handleFolder(self, found):
- src = self.load("http://duckcrypt.info/ajax/auth.php?hash=" + str(found.group(2)))
+ src = self.load("http://duckcrypt.info/ajax/auth.php?hash=" + str(found.group(2)))
found = re.search(self.__pattern__, src)
self.logDebug("Redirectet to " + str(found.group(0)))
src = self.load(str(found.group(0)))
@@ -55,4 +55,3 @@ class DuckCryptInfo(Crypter):
self.logDebug('no links found - (Plugin out of date?)')
else:
self.core.files.addLinks([link], self.pyfile.package().id)
-