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.py34
1 files changed, 0 insertions, 34 deletions
diff --git a/pyload/plugins/account/StahnuTo.py b/pyload/plugins/account/StahnuTo.py
deleted file mode 100644
index d2358191a..000000000
--- a/pyload/plugins/account/StahnuTo.py
+++ /dev/null
@@ -1,34 +0,0 @@
-# -*- coding: utf-8 -*-
-
-import re
-
-from pyload.plugins.Account import Account
-
-
-class StahnuTo(Account):
- __name = "StahnuTo"
- __type = "account"
- __version = "0.03"
-
- __description = """StahnuTo account plugin"""
- __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 = 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,
- "password": data['password'],
- "submit": "Login"})
-
- if not '<a href="logout.php">' in html:
- self.wrongPassword()