summaryrefslogtreecommitdiffstats
path: root/pyload/plugins
diff options
context:
space:
mode:
authorGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2013-07-21 10:37:13 +0200
committerGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2013-07-21 10:37:29 +0200
commit17634001b1d4202ba516c31a5c6edada650c6b79 (patch)
tree7104bfaa9b007dd1f0d3f42aca7aac7d39882680 /pyload/plugins
parentMoving plugins from module to pyload (diff)
downloadpyload-17634001b1d4202ba516c31a5c6edada650c6b79.tar.xz
converted AllDebrid plugin
Diffstat (limited to 'pyload/plugins')
-rw-r--r--pyload/plugins/accounts/AlldebridCom.py12
1 files changed, 10 insertions, 2 deletions
diff --git a/pyload/plugins/accounts/AlldebridCom.py b/pyload/plugins/accounts/AlldebridCom.py
index baaa9d264..1b40876a7 100644
--- a/pyload/plugins/accounts/AlldebridCom.py
+++ b/pyload/plugins/accounts/AlldebridCom.py
@@ -1,11 +1,13 @@
-from module.plugins.Account import Account
+
import xml.dom.minidom as dom
from BeautifulSoup import BeautifulSoup
from time import time
import re
import urllib
-class AlldebridCom(Account):
+from pyload.plugins.MultiHoster import MultiHoster
+
+class AlldebridCom(MultiHoster):
__name__ = "AlldebridCom"
__version__ = "0.21"
__type__ = "account"
@@ -47,3 +49,9 @@ 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()]