diff options
author | 2015-07-19 10:59:52 +0200 | |
---|---|---|
committer | 2015-07-19 10:59:52 +0200 | |
commit | ff9383bfe06d14d23bc0ed6af79aa8967965d078 (patch) | |
tree | 78a09f0c47eb392d6ca3c8bf948dc9a99709861b /module/plugins/crypter/ShareLinksBiz.py | |
parent | Fix addons (diff) | |
download | pyload-ff9383bfe06d14d23bc0ed6af79aa8967965d078.tar.xz |
Code cosmetics (3)
Diffstat (limited to 'module/plugins/crypter/ShareLinksBiz.py')
-rw-r--r-- | module/plugins/crypter/ShareLinksBiz.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/module/plugins/crypter/ShareLinksBiz.py b/module/plugins/crypter/ShareLinksBiz.py index 9b435e694..1a26080bc 100644 --- a/module/plugins/crypter/ShareLinksBiz.py +++ b/module/plugins/crypter/ShareLinksBiz.py @@ -80,7 +80,7 @@ class ShareLinksBiz(Crypter): def is_password_protected(self): - if re.search(r'''<form.*?id="passwordForm".*?>''', self.html): + if re.search(r'<form.*?id="passwordForm".*?>', self.html): self.log_debug("Links are protected") return True return False @@ -102,7 +102,7 @@ class ShareLinksBiz(Crypter): def unlock_password_protection(self): password = self.get_password() self.log_debug("Submitting password [%s] for protected links" % password) - post = {"password": password, 'login': 'Submit form'} + post = {'password': password, 'login': 'Submit form'} url = self.base_url + '/' + self.file_id self.html = self.load(url, post=post) @@ -248,11 +248,11 @@ class ShareLinksBiz(Crypter): #: Get jk strlist = list(params[1].decode('base64')) - jk = ''.join(strlist[::-1]) + jk = "".join(strlist[::-1]) #: Get crypted strlist = list(params[2].decode('base64')) - crypted = ''.join(strlist[::-1]) + crypted = "".join(strlist[::-1]) #: Log and return return crypted, jk |