summaryrefslogtreecommitdiffstats
path: root/pyload/plugin/account/MultishareCz.py
diff options
context:
space:
mode:
authorGravatar Walter Purcaro <vuolter@users.noreply.github.com> 2015-04-20 21:38:42 +0200
committerGravatar Walter Purcaro <vuolter@users.noreply.github.com> 2015-04-20 23:01:29 +0200
commit9327b55e147d95b5865f23788f980c7268ea03e3 (patch)
tree0260b6f90b9e6fab5548e29e44b6d66f3334c98e /pyload/plugin/account/MultishareCz.py
parentPEP-8, Python Zen, refactor and reduce code (part 9 in master module/network) (diff)
downloadpyload-9327b55e147d95b5865f23788f980c7268ea03e3.tar.xz
Spare code cosmetics (7)
Diffstat (limited to 'pyload/plugin/account/MultishareCz.py')
-rw-r--r--pyload/plugin/account/MultishareCz.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/pyload/plugin/account/MultishareCz.py b/pyload/plugin/account/MultishareCz.py
index b743fd28a..6d41a2b18 100644
--- a/pyload/plugin/account/MultishareCz.py
+++ b/pyload/plugin/account/MultishareCz.py
@@ -25,7 +25,7 @@ class MultishareCz(Account):
m = re.search(self.TRAFFIC_LEFT_PATTERN, html)
trafficleft = self.parseTraffic(m.group('S') + m.group('U')) if m else 0
- self.premium = True if trafficleft else False
+ self.premium = bool(trafficleft)
html = req.load("http://www.multishare.cz/", decode=True)
mms_info = dict(re.findall(self.ACCOUNT_INFO_PATTERN, html))