diff options
Diffstat (limited to 'pyload/plugins/accounts/Premium4Me.py')
-rw-r--r-- | pyload/plugins/accounts/Premium4Me.py | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/pyload/plugins/accounts/Premium4Me.py b/pyload/plugins/accounts/Premium4Me.py index 467c5943e..7f49cca30 100644 --- a/pyload/plugins/accounts/Premium4Me.py +++ b/pyload/plugins/accounts/Premium4Me.py @@ -1,7 +1,6 @@ -from module.plugins.Account import Account +from pyload.plugins.MultiHoster import MultiHoster - -class Premium4Me(Account): +class Premium4Me(MultiHoster): __name__ = "Premium4Me" __version__ = "0.03" __type__ = "account" @@ -23,3 +22,7 @@ class Premium4Me(Account): if "wrong username" in self.authcode: self.wrongPassword() + + def loadHosterList(self, req): + page = req.load("http://premium.to/api/hosters.php?authcode=%s" % self.authcode) + return [x.strip() for x in page.replace("\"", "").split(";")] |