diff options
author | RaNaN <Mast3rRaNaN@hotmail.de> | 2013-11-17 16:16:18 +0100 |
---|---|---|
committer | RaNaN <Mast3rRaNaN@hotmail.de> | 2013-11-17 16:16:18 +0100 |
commit | 0ffa48c8d47d5868e5b9948d2a594f0a5280c064 (patch) | |
tree | b60557cc73f5f85e7d7cb52a1c8ffec23bfd3c55 /pyload/plugins/accounts/Premium4Me.py | |
parent | Merge remote-tracking branch 'origin/stable' (diff) | |
download | pyload-0ffa48c8d47d5868e5b9948d2a594f0a5280c064.tar.xz |
restored multihoster overwritten by merge
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(";")] |