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/AlldebridCom.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/AlldebridCom.py')
-rw-r--r-- | pyload/plugins/accounts/AlldebridCom.py | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/pyload/plugins/accounts/AlldebridCom.py b/pyload/plugins/accounts/AlldebridCom.py index 9fb050535..4be7cb897 100644 --- a/pyload/plugins/accounts/AlldebridCom.py +++ b/pyload/plugins/accounts/AlldebridCom.py @@ -3,11 +3,11 @@ from time import time import re import urllib -from module.plugins.Account import Account +from pyload.plugins.MultiHoster import MultiHoster from BeautifulSoup import BeautifulSoup -class AlldebridCom(Account): +class AlldebridCom(MultiHoster): __name__ = "AlldebridCom" __version__ = "0.21" __type__ = "account" @@ -50,3 +50,8 @@ class AlldebridCom(Account): if "Invalid captcha" in page: self.wrongPassword() + + def loadHosterList(self, req): + https = "https" if self.getConfig("https") else "http" + page = req.load(https + "://www.alldebrid.com/api.php?action=get_host").replace("\"","").strip() + return [x.strip() for x in page.split(",") if x.strip()] |