diff options
author | Walter Purcaro <vuolter@gmail.com> | 2014-07-20 03:23:40 +0200 |
---|---|---|
committer | Walter Purcaro <vuolter@gmail.com> | 2014-07-20 03:23:40 +0200 |
commit | da308a71c77296793eb5801ceb68298c91a4da7f (patch) | |
tree | 9fbc142ddff2995f10ef62dd8ca6e9fdbe8695d8 /module/plugins/accounts | |
parent | Fix captcha import bug introduced in 48c0c42fd6faffc56432d5f037cd575979f180cc (diff) | |
download | pyload-da308a71c77296793eb5801ceb68298c91a4da7f.tar.xz |
[ShareRapidCom] Fix https://github.com/pyload/pyload/issues/694
Diffstat (limited to 'module/plugins/accounts')
-rw-r--r-- | module/plugins/accounts/ShareRapidCom.py | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/module/plugins/accounts/ShareRapidCom.py b/module/plugins/accounts/ShareRapidCom.py index 8f6e3cfc4..3aa67ffd1 100644 --- a/module/plugins/accounts/ShareRapidCom.py +++ b/module/plugins/accounts/ShareRapidCom.py @@ -1,24 +1,25 @@ # -*- coding: utf-8 -*- import re + from time import mktime, strptime from module.plugins.Account import Account class ShareRapidCom(Account): __name__ = "ShareRapidCom" - __version__ = "0.33" + __version__ = "0.34" __type__ = "account" - __description__ = """ShareRapid account plugin""" + __description__ = """MegaRapid.cz account plugin""" __author_name__ = ("MikyWoW", "zoidberg") __author_mail__ = ("mikywow@seznam.cz", "zoidberg@mujmail.cz") - login_timeout = 60 + def loadAccountInfo(self, user, req): - src = req.load("http://sharerapid.cz/mujucet/", decode=True) + src = req.load("http://megarapid.cz/mujucet/", decode=True) found = re.search(ur'<td>Max. počet paralelních stahování: </td><td>(\d+)', src) if found: @@ -38,12 +39,12 @@ class ShareRapidCom(Account): return {"premium": False, "trafficleft": None, "validuntil": None} def login(self, user, data, req): - htm = req.load("http://sharerapid.cz/prihlaseni/", cookies=True) + htm = req.load("http://megarapid.cz/prihlaseni/", cookies=True) if "Heslo:" in htm: start = htm.index('id="inp_hash" name="hash" value="') htm = htm[start + 33:] hashes = htm[0:32] - htm = req.load("http://sharerapid.cz/prihlaseni/", + htm = req.load("http://megarapid.cz/prihlaseni/", post={"hash": hashes, "login": user, "pass1": data['password'], |