summaryrefslogtreecommitdiffstats
path: root/pyload/plugins/accounts/BitshareCom.py
diff options
context:
space:
mode:
authorGravatar Stefano <l.stickell@yahoo.it> 2013-07-23 20:22:42 +0200
committerGravatar Stefano <l.stickell@yahoo.it> 2013-07-23 20:40:59 +0200
commit4a81799278ae003bfbd7897f7bcd1ef46642d953 (patch)
tree59e580fc761103cfacd9190bc9c55a5a01367f47 /pyload/plugins/accounts/BitshareCom.py
parentlittle cleanup, added some tests (diff)
downloadpyload-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/BitshareCom.py')
-rw-r--r--pyload/plugins/accounts/BitshareCom.py9
1 files changed, 5 insertions, 4 deletions
diff --git a/pyload/plugins/accounts/BitshareCom.py b/pyload/plugins/accounts/BitshareCom.py
index a4f56e31c..39cff36eb 100644
--- a/pyload/plugins/accounts/BitshareCom.py
+++ b/pyload/plugins/accounts/BitshareCom.py
@@ -19,6 +19,7 @@
from module.plugins.Account import Account
+
class BitshareCom(Account):
__name__ = "BitshareCom"
__version__ = "0.11"
@@ -28,17 +29,17 @@ class BitshareCom(Account):
def loadAccountInfo(self, user, req):
page = req.load("http://bitshare.com/mysettings.html")
-
+
if "\"http://bitshare.com/myupgrade.html\">Free" in page:
- return {"validuntil": -1, "trafficleft":-1, "premium": False}
+ return {"validuntil": -1, "trafficleft": -1, "premium": False}
if not '<input type="checkbox" name="directdownload" checked="checked" />' in page:
self.core.log.warning(_("Activate direct Download in your Bitshare Account"))
return {"validuntil": -1, "trafficleft": -1, "premium": True}
-
def login(self, user, data, req):
- page = req.load("http://bitshare.com/login.html", post={ "user" : user, "password" : data["password"], "submit" :"Login"}, cookies=True)
+ page = req.load("http://bitshare.com/login.html",
+ post={"user": user, "password": data["password"], "submit": "Login"}, cookies=True)
if "login" in req.lastEffectiveURL:
self.wrongPassword()