From acc46fc3497a66a427b795b4a22c6e71d69185a1 Mon Sep 17 00:00:00 2001
From: Walter Purcaro <vuolter@gmail.com>
Date: Sat, 13 Dec 2014 15:56:57 +0100
Subject: Update

---
 pyload/plugins/account/RehostTo.py | 41 --------------------------------------
 1 file changed, 41 deletions(-)
 delete mode 100644 pyload/plugins/account/RehostTo.py

(limited to 'pyload/plugins/account/RehostTo.py')

diff --git a/pyload/plugins/account/RehostTo.py b/pyload/plugins/account/RehostTo.py
deleted file mode 100644
index 1a7ea9577..000000000
--- a/pyload/plugins/account/RehostTo.py
+++ /dev/null
@@ -1,41 +0,0 @@
-# -*- coding: utf-8 -*-
-
-from pyload.plugins.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()
-- 
cgit v1.2.3