summaryrefslogtreecommitdiffstats
path: root/pyload/plugins/account/StahnuTo.py
diff options
context:
space:
mode:
Diffstat (limited to 'pyload/plugins/account/StahnuTo.py')
-rw-r--r--pyload/plugins/account/StahnuTo.py15
1 files changed, 8 insertions, 7 deletions
diff --git a/pyload/plugins/account/StahnuTo.py b/pyload/plugins/account/StahnuTo.py
index fa08b234d..44884f835 100644
--- a/pyload/plugins/account/StahnuTo.py
+++ b/pyload/plugins/account/StahnuTo.py
@@ -2,27 +2,28 @@
import re
-from pyload.plugins.base.Account import Account
-from pyload.utils import parseFileSize
+from module.plugins.Account import Account
class StahnuTo(Account):
- __name__ = "StahnuTo"
- __type__ = "account"
- __version__ = "0.02"
+ __name__ = "StahnuTo"
+ __type__ = "account"
+ __version__ = "0.03"
__description__ = """StahnuTo account plugin"""
- __authors__ = [("zoidberg", "zoidberg@mujmail.cz")]
+ __license__ = "GPLv3"
+ __authors__ = [("zoidberg", "zoidberg@mujmail.cz")]
def loadAccountInfo(self, user, req):
html = req.load("http://www.stahnu.to/")
m = re.search(r'>VIP: (\d+.*)<', html)
- trafficleft = parseFileSize(m.group(1)) * 1024 if m else 0
+ trafficleft = self.parseTraffic(m.group(1)) * 1024 if m else 0
return {"premium": trafficleft > (512 * 1024), "trafficleft": trafficleft, "validuntil": -1}
+
def login(self, user, data, req):
html = req.load("http://www.stahnu.to/login.php", post={
"username": user,