From 0ffa48c8d47d5868e5b9948d2a594f0a5280c064 Mon Sep 17 00:00:00 2001 From: RaNaN Date: Sun, 17 Nov 2013 16:16:18 +0100 Subject: restored multihoster overwritten by merge --- pyload/plugins/accounts/AlldebridCom.py | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'pyload/plugins/accounts/AlldebridCom.py') 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()] -- cgit v1.2.3