summaryrefslogtreecommitdiffstats
path: root/pyload/plugin/account/RehostTo.py
diff options
context:
space:
mode:
Diffstat (limited to 'pyload/plugin/account/RehostTo.py')
-rw-r--r--pyload/plugin/account/RehostTo.py41
1 files changed, 0 insertions, 41 deletions
diff --git a/pyload/plugin/account/RehostTo.py b/pyload/plugin/account/RehostTo.py
deleted file mode 100644
index bcc34d47f..000000000
--- a/pyload/plugin/account/RehostTo.py
+++ /dev/null
@@ -1,41 +0,0 @@
-# -*- coding: utf-8 -*-
-
-from pyload.plugin.Account import Account
-
-
-class RehostTo(Account):
- __name__ = "RehostTo"
- __type__ = "account"
- __version__ = "0.10"
-
- __description__ = """Rehost.to account plugin"""
- __license__ = "GPLv3"
- __authors__ = [("RaNaN", "RaNaN@pyload.org")]
-
-
- def loadAccountInfo(self, user, req):
- data = self.getAccountData(user)
- page = req.load("http://rehost.to/api.php",
- get={'cmd': "login", 'user': user, 'pass': data['password']})
- data = [x.split("=") for x in page.split(",")]
- ses = data[0][1]
- long_ses = data[1][1]
-
- page = req.load("http://rehost.to/api.php",
- get={'cmd': "get_premium_credits", 'long_ses': long_ses})
- traffic, valid = page.split(",")
-
- account_info = {"trafficleft": int(traffic) * 1024,
- "validuntil": int(valid),
- "long_ses": long_ses,
- "ses": ses}
-
- return account_info
-
-
- def login(self, user, data, req):
- page = req.load("http://rehost.to/api.php",
- get={'cmd': "login", 'user': user, 'pass': data['password']})
-
- if "Login failed." in page:
- self.wrongPassword()