summaryrefslogtreecommitdiffstats
path: root/pyload/plugin/account/HellshareCz.py
diff options
context:
space:
mode:
authorGravatar Walter Purcaro <vuolter@users.noreply.github.com> 2015-04-20 22:48:30 +0200
committerGravatar Walter Purcaro <vuolter@users.noreply.github.com> 2015-04-20 23:02:00 +0200
commit5a86c3cb1db6cd87bf9ae22e09dd209cecc0a363 (patch)
treed5fbe979c043f5aa684272c97c0305d3124b1901 /pyload/plugin/account/HellshareCz.py
parentPEP-8, Python Zen, refactor and reduce code (part 12 in master module/remote/... (diff)
downloadpyload-5a86c3cb1db6cd87bf9ae22e09dd209cecc0a363.tar.xz
Spare code cosmetics (8)
Diffstat (limited to 'pyload/plugin/account/HellshareCz.py')
-rw-r--r--pyload/plugin/account/HellshareCz.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/pyload/plugin/account/HellshareCz.py b/pyload/plugin/account/HellshareCz.py
index 444677c88..68843ee80 100644
--- a/pyload/plugin/account/HellshareCz.py
+++ b/pyload/plugin/account/HellshareCz.py
@@ -33,14 +33,14 @@ class HellshareCz(Account):
premium = True
try:
if "." in credit:
- #Time-based account
+ # Time-based account
vt = [int(x) for x in credit.split('.')[:2]]
lt = time.localtime()
year = lt.tm_year + int(vt[1] < lt.tm_mon or (vt[1] == lt.tm_mon and vt[0] < lt.tm_mday))
validuntil = time.mktime(time.strptime("%s%d 23:59:59" % (credit, year), "%d.%m.%Y %H:%M:%S"))
trafficleft = -1
else:
- #Traffic-based account
+ # Traffic-based account
trafficleft = self.parseTraffic(credit + "MB")
validuntil = -1
except Exception, e:
@@ -54,7 +54,7 @@ class HellshareCz(Account):
def login(self, user, data, req):
html = req.load('http://www.hellshare.com/', decode=True)
if req.lastEffectiveURL != 'http://www.hellshare.com/':
- #Switch to English
+ # Switch to English
self.logDebug("Switch lang - URL: %s" % req.lastEffectiveURL)
json = req.load("%s?do=locRouter-show" % req.lastEffectiveURL)