summaryrefslogtreecommitdiffstats
path: root/module/plugins/accounts/FilecloudIo.py
diff options
context:
space:
mode:
authorGravatar Walter Purcaro <vuolter@users.noreply.github.com> 2015-07-17 15:29:48 +0200
committerGravatar Walter Purcaro <vuolter@users.noreply.github.com> 2015-07-17 15:29:48 +0200
commit1f5a55ae2133a782bdcca334ecbcdbde50dbcf99 (patch)
tree820ddb376ea97d4cf3aa53ef0f4dfb4ebfa4a0d5 /module/plugins/accounts/FilecloudIo.py
parentSpare fixes and code cosmetics (diff)
downloadpyload-1f5a55ae2133a782bdcca334ecbcdbde50dbcf99.tar.xz
No more need to use the req argument when call load method
Diffstat (limited to 'module/plugins/accounts/FilecloudIo.py')
-rw-r--r--module/plugins/accounts/FilecloudIo.py8
1 files changed, 3 insertions, 5 deletions
diff --git a/module/plugins/accounts/FilecloudIo.py b/module/plugins/accounts/FilecloudIo.py
index 512a7b67d..d8b60ccbc 100644
--- a/module/plugins/accounts/FilecloudIo.py
+++ b/module/plugins/accounts/FilecloudIo.py
@@ -32,8 +32,7 @@ class FilecloudIo(Account):
akey = rep['akey']
self.accounts[user]['akey'] = akey #: Saved for hoster plugin
rep = self.load("http://api.filecloud.io/api-fetch_account_details.api",
- post={"akey": akey},
- req=req)
+ post={"akey": akey})
rep = json_loads(rep)
if rep['is_premium'] == 1:
@@ -44,7 +43,7 @@ class FilecloudIo(Account):
def login(self, user, data, req):
req.cj.setCookie("secure.filecloud.io", "lang", "en")
- html = self.load('https://secure.filecloud.io/user-login.html', req=req)
+ html = self.load('https://secure.filecloud.io/user-login.html')
if not hasattr(self, "form_data"):
self.form_data = {}
@@ -53,8 +52,7 @@ class FilecloudIo(Account):
self.form_data['password'] = data['password']
html = self.load('https://secure.filecloud.io/user-login_p.html',
- post=self.form_data,
- req=req)
+ post=self.form_data)
if "you have successfully logged in" not in html:
self.wrong_password()