diff options
author | Walter Purcaro <vuolter@gmail.com> | 2014-10-25 01:15:58 +0200 |
---|---|---|
committer | Walter Purcaro <vuolter@gmail.com> | 2014-10-25 01:15:58 +0200 |
commit | 29de13dc5098cc9214f3f8f111da140a22e3e2ff (patch) | |
tree | ddf95710cbc7ee67da3457b38a1e7937fda4ef21 /module/plugins/accounts/MultishareCz.py | |
parent | Fix error method (diff) | |
download | pyload-29de13dc5098cc9214f3f8f111da140a22e3e2ff.tar.xz |
Use parseTraffic instead parseFileSize in accounts
Diffstat (limited to 'module/plugins/accounts/MultishareCz.py')
-rw-r--r-- | module/plugins/accounts/MultishareCz.py | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/module/plugins/accounts/MultishareCz.py b/module/plugins/accounts/MultishareCz.py index 813f36496..38bb11ea1 100644 --- a/module/plugins/accounts/MultishareCz.py +++ b/module/plugins/accounts/MultishareCz.py @@ -1,16 +1,14 @@ # -*- coding: utf-8 -*- -from module.plugins.Account import Account -#from time import mktime, strptime -#from pycurl import REFERER import re -from module.utils import parseFileSize + +from module.plugins.Account import Account class MultishareCz(Account): __name__ = "MultishareCz" __type__ = "account" - __version__ = "0.02" + __version__ = "0.03" __description__ = """Multishare.cz account plugin""" __license__ = "GPLv3" @@ -26,7 +24,7 @@ class MultishareCz(Account): html = req.load("http://www.multishare.cz/profil/", decode=True) m = re.search(self.TRAFFIC_LEFT_PATTERN, html) - trafficleft = parseFileSize(m.group('S'), m.group('U')) if m else 0 + trafficleft = self.parseTraffic(m.group('S'), m.group('U')) if m else 0 self.premium = True if trafficleft else False html = req.load("http://www.multishare.cz/", decode=True) |