summaryrefslogtreecommitdiffstats
path: root/module/plugins/accounts/FilecloudIo.py
diff options
context:
space:
mode:
authorGravatar Walter Purcaro <vuolter@users.noreply.github.com> 2015-09-29 20:05:07 +0200
committerGravatar Walter Purcaro <vuolter@users.noreply.github.com> 2015-09-29 20:05:07 +0200
commitec6e5dc7fcdcefee10e37d22473c9accae1104cf (patch)
treed19824c0223b083d5b4256530443165cfabb7a04 /module/plugins/accounts/FilecloudIo.py
parentMerge pull request #1850 from chaosblog/patch-2 (diff)
downloadpyload-ec6e5dc7fcdcefee10e37d22473c9accae1104cf.tar.xz
Account class completely rewritten + plugins updated
Diffstat (limited to 'module/plugins/accounts/FilecloudIo.py')
-rw-r--r--module/plugins/accounts/FilecloudIo.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/module/plugins/accounts/FilecloudIo.py b/module/plugins/accounts/FilecloudIo.py
index 075778af4..d80a8b9d6 100644
--- a/module/plugins/accounts/FilecloudIo.py
+++ b/module/plugins/accounts/FilecloudIo.py
@@ -8,7 +8,7 @@ from module.plugins.internal.Plugin import set_cookie
class FilecloudIo(Account):
__name__ = "FilecloudIo"
__type__ = "account"
- __version__ = "0.08"
+ __version__ = "0.09"
__status__ = "testing"
__description__ = """FilecloudIo account plugin"""
@@ -17,7 +17,7 @@ class FilecloudIo(Account):
("stickell", "l.stickell@yahoo.it")]
- def grab_info(self, user, password, data, req):
+ def grab_info(self, user, password, data):
#: It looks like the first API request always fails, so we retry 5 times, it should work on the second try
for _i in xrange(5):
rep = self.load("https://secure.filecloud.io/api-fetch_apikey.api",
@@ -43,8 +43,8 @@ class FilecloudIo(Account):
return {'premium': False}
- def login(self, user, password, data, req):
- set_cookie(req.cj, "secure.filecloud.io", "lang", "en")
+ def signin(self, user, password, data):
+ set_cookie(self.req.cj, "secure.filecloud.io", "lang", "en")
html = self.load('https://secure.filecloud.io/user-login.html')
if not hasattr(self, "form_data"):