diff options
author | RaNaN <Mast3rRaNaN@hotmail.de> | 2013-07-12 13:39:54 +0200 |
---|---|---|
committer | RaNaN <Mast3rRaNaN@hotmail.de> | 2013-07-12 13:39:54 +0200 |
commit | 9b3d6ccaf321a44a0f6b9570be099ec465f79faa (patch) | |
tree | b5e76f686bdb51d4cd4d8d5b8507c4c04687a8d6 /pyload/plugins/accounts/Premium4Me.py | |
parent | fixed addon related bugs (diff) | |
download | pyload-9b3d6ccaf321a44a0f6b9570be099ec465f79faa.tar.xz |
working multihoster addon
Diffstat (limited to 'pyload/plugins/accounts/Premium4Me.py')
-rw-r--r-- | pyload/plugins/accounts/Premium4Me.py | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/pyload/plugins/accounts/Premium4Me.py b/pyload/plugins/accounts/Premium4Me.py index fbca3ce84..3b0d24488 100644 --- a/pyload/plugins/accounts/Premium4Me.py +++ b/pyload/plugins/accounts/Premium4Me.py @@ -1,6 +1,7 @@ -from module.plugins.Account import Account -class Premium4Me(Account): +from pyload.plugins.MultiHoster import MultiHoster + +class Premium4Me(MultiHoster): __name__ = "Premium4Me" __version__ = "0.03" __type__ = "account" @@ -20,4 +21,8 @@ class Premium4Me(Account): self.authcode = req.load("http://premium.to/api/getauthcode.php?username=%s&password=%s" % (user, data["password"])).strip() if "wrong username" in self.authcode: - self.wrongPassword()
\ No newline at end of file + 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(";")]
\ No newline at end of file |