summaryrefslogtreecommitdiffstats
path: root/pyload/plugins/accounts/RealdebridCom.py
diff options
context:
space:
mode:
Diffstat (limited to 'pyload/plugins/accounts/RealdebridCom.py')
-rw-r--r--pyload/plugins/accounts/RealdebridCom.py14
1 files changed, 5 insertions, 9 deletions
diff --git a/pyload/plugins/accounts/RealdebridCom.py b/pyload/plugins/accounts/RealdebridCom.py
index 2ef8dbb79..a9980b088 100644
--- a/pyload/plugins/accounts/RealdebridCom.py
+++ b/pyload/plugins/accounts/RealdebridCom.py
@@ -1,20 +1,20 @@
import xml.dom.minidom as dom
-from pyload.plugins.MultiHoster import MultiHoster
+from module.plugins.Account import Account
-class RealdebridCom(MultiHoster):
+class RealdebridCom(Account):
__name__ = "RealdebridCom"
- __version__ = "0.5"
+ __version__ = "0.43"
__type__ = "account"
__description__ = """Real-Debrid.com account plugin"""
__author_name__ = ("Devirex, Hazzard")
__author_mail__ = ("naibaf_11@yahoo.de")
- def loadAccountInfo(self, req):
+ def loadAccountInfo(self, user, req):
if self.pin_code:
return {"premium": False}
- page = req.load("http://real-debrid.com/api/account.php")
+ page = req.load("https://real-debrid.com/api/account.php")
xml = dom.parseString(page)
account_info = {"validuntil": int(xml.getElementsByTagName("expiration")[0].childNodes[0].nodeValue),
"trafficleft": -1}
@@ -29,7 +29,3 @@ class RealdebridCom(MultiHoster):
elif "PIN Code required" in page:
self.logWarning('PIN code required. Please login to https://real-debrid.com using the PIN or disable the double authentication in your control panel on https://real-debrid.com.')
self.pin_code = True
-
- def loadHosterList(self, req):
- page = req.load("http://real-debrid.com/api/hosters.php").replace("\"", "").strip()
- return[x.strip() for x in page.split(",") if x.strip()]