diff options
Diffstat (limited to 'pyload/plugins/accounts/SimplydebridCom.py')
-rw-r--r-- | pyload/plugins/accounts/SimplydebridCom.py | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/pyload/plugins/accounts/SimplydebridCom.py b/pyload/plugins/accounts/SimplydebridCom.py index 82b499bbd..0b4c82a3b 100644 --- a/pyload/plugins/accounts/SimplydebridCom.py +++ b/pyload/plugins/accounts/SimplydebridCom.py @@ -1,10 +1,10 @@ # -*- coding: utf-8 -*- from time import mktime, strptime -from module.plugins.Account import Account +from pyload.plugins.MultiHoster import MultiHoster -class SimplydebridCom(Account): +class SimplydebridCom(MultiHoster): __name__ = "SimplydebridCom" __version__ = "0.1" __type__ = "account" @@ -28,3 +28,7 @@ class SimplydebridCom(Account): response = req.load("http://simply-debrid.com/api.php", get=get_data, decode=True) if response != "02: loggin success": self.wrongPassword() + + def loadHosterList(self, req): + page = req.load("http://simply-debrid.com/api.php?list=1") + return [x.strip() for x in page.rstrip(';').replace("\"", "").split(";")] |