diff options
author | Stefano <l.stickell@yahoo.it> | 2013-07-23 20:22:42 +0200 |
---|---|---|
committer | Stefano <l.stickell@yahoo.it> | 2013-07-23 20:40:59 +0200 |
commit | 4a81799278ae003bfbd7897f7bcd1ef46642d953 (patch) | |
tree | 59e580fc761103cfacd9190bc9c55a5a01367f47 /pyload/plugins/accounts/FilecloudIo.py | |
parent | little cleanup, added some tests (diff) | |
download | pyload-4a81799278ae003bfbd7897f7bcd1ef46642d953.tar.xz |
Fixed PEP 8 violations in Accounts
(cherry picked from commit f5535809bebc6cc343475704832c8fd8674d2d06)
Conflicts:
pyload/plugins/accounts/AlldebridCom.py
pyload/plugins/accounts/Premium4Me.py
pyload/plugins/accounts/PremiumizeMe.py
pyload/plugins/accounts/RealdebridCom.py
Diffstat (limited to 'pyload/plugins/accounts/FilecloudIo.py')
-rw-r--r-- | pyload/plugins/accounts/FilecloudIo.py | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/pyload/plugins/accounts/FilecloudIo.py b/pyload/plugins/accounts/FilecloudIo.py index cf9f92209..5de722ea7 100644 --- a/pyload/plugins/accounts/FilecloudIo.py +++ b/pyload/plugins/accounts/FilecloudIo.py @@ -19,6 +19,7 @@ from module.plugins.Account import Account + class FilecloudIo(Account): __name__ = "FilecloudIo" __version__ = "0.01" @@ -26,24 +27,23 @@ class FilecloudIo(Account): __description__ = """FilecloudIo account plugin""" __author_name__ = ("zoidberg") __author_mail__ = ("zoidberg@mujmail.cz") - - def loadAccountInfo(self, user, req): - return ({"validuntil": -1, "trafficleft": -1, "premium": False}) - + + def loadAccountInfo(self, user, req): + return {"validuntil": -1, "trafficleft": -1, "premium": False} + def login(self, user, data, req): req.cj.setCookie("secure.filecloud.io", "lang", "en") html = req.load('https://secure.filecloud.io/user-login.html') - + if not hasattr(self, "form_data"): self.form_data = {} - + self.form_data["username"] = user self.form_data["password"] = data['password'] - + html = req.load('https://secure.filecloud.io/user-login_p.html', - post = self.form_data, - multipart = True) - + post=self.form_data, + multipart=True) + self.logged_in = True if "you have successfully logged in - filecloud.io" in html else False self.form_data = {} -
\ No newline at end of file |