diff options
author | RaNaN <Mast3rRaNaN@hotmail.de> | 2013-01-03 15:36:40 +0100 |
---|---|---|
committer | RaNaN <Mast3rRaNaN@hotmail.de> | 2013-01-03 15:36:40 +0100 |
commit | 7d2bfb80dec376db387c3b471f192f8fb0b88648 (patch) | |
tree | d5fb770f948a5a512cef6ed409dbdc45ce391c8a /module | |
parent | ShareLinksBiz: FIX package info retrieval (diff) | |
download | pyload-7d2bfb80dec376db387c3b471f192f8fb0b88648.tar.xz |
Alldebdrid update
Diffstat (limited to 'module')
-rw-r--r-- | module/plugins/accounts/AlldebridCom.py | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/module/plugins/accounts/AlldebridCom.py b/module/plugins/accounts/AlldebridCom.py index f87a1c881..7d4d245ba 100644 --- a/module/plugins/accounts/AlldebridCom.py +++ b/module/plugins/accounts/AlldebridCom.py @@ -3,10 +3,11 @@ import xml.dom.minidom as dom from BeautifulSoup import BeautifulSoup
from time import time
import re
+import urllib class AlldebridCom(Account):
__name__ = "AlldebridCom"
- __version__ = "0.2"
+ __version__ = "0.21"
__type__ = "account"
__description__ = """AllDebrid.com account plugin"""
__author_name__ = ("Andy, Voigt")
@@ -34,7 +35,15 @@ class AlldebridCom(Account): return account_info
def login(self, user, data, req):
- page = req.load("http://www.alldebrid.com/register/?action=login&login_login=%s&login_password=%s" % (user, data["password"]))
+ + urlparams = urllib.urlencode({'action':'login','login_login':user,'login_password':data["password"]}) + page = req.load("http://www.alldebrid.com/register/?%s" % (urlparams)) if "This login doesn't exist" in page:
self.wrongPassword()
+ + if "The password is not valid" in page: + self.wrongPassword() + + if "Invalid captcha" in page: + self.wrongPassword() |