summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Jelenik <jelenik@jelenik.sk> 2014-05-19 12:57:16 +0200
committerGravatar Stefano <l.stickell@yahoo.it> 2014-05-19 12:57:16 +0200
commit8c7188d78ed36b96a110f86b290136d863e61aad (patch)
treed3b2f25e50e5b6a05dc9109ab6f759fd6e5c1f89
parent[DDLStorage] Improved getInfo (diff)
downloadpyload-8c7188d78ed36b96a110f86b290136d863e61aad.tar.xz
[ShareRapid] Updates
Merges #619
-rw-r--r--module/plugins/accounts/ShareRapidCom.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/module/plugins/accounts/ShareRapidCom.py b/module/plugins/accounts/ShareRapidCom.py
index 776773eb6..38150e5cf 100644
--- a/module/plugins/accounts/ShareRapidCom.py
+++ b/module/plugins/accounts/ShareRapidCom.py
@@ -7,7 +7,7 @@ from module.plugins.Account import Account
class ShareRapidCom(Account):
__name__ = "ShareRapidCom"
- __version__ = "0.32"
+ __version__ = "0.33"
__type__ = "account"
__description__ = """ShareRapid account plugin"""
__author_name__ = ("MikyWoW", "zoidberg")
@@ -16,7 +16,7 @@ class ShareRapidCom(Account):
login_timeout = 60
def loadAccountInfo(self, user, req):
- src = req.load("http://share-rapid.com/mujucet/", decode=True)
+ src = req.load("http://sharerapid.cz/mujucet/", decode=True)
found = re.search(ur'<td>Max. počet paralelních stahování: </td><td>(\d+)', src)
if found:
@@ -28,7 +28,7 @@ class ShareRapidCom(Account):
validuntil = mktime(strptime(found.group(1), "%d.%m.%Y - %H:%M"))
return {"premium": True, "trafficleft": -1, "validuntil": validuntil}
- found = re.search(r'<tr><td>GB:</td><td>(.*?) GB', src)
+ found = re.search(r'<tr><td>Kredit</td><td>(.*?) GiB', src)
if found:
trafficleft = float(found.group(1)) * (1 << 20)
return {"premium": True, "trafficleft": trafficleft, "validuntil": -1}
@@ -36,12 +36,12 @@ class ShareRapidCom(Account):
return {"premium": False, "trafficleft": None, "validuntil": None}
def login(self, user, data, req):
- htm = req.load("http://share-rapid.com/prihlaseni/", cookies=True)
+ htm = req.load("http://sharerapid.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://share-rapid.com/prihlaseni/",
+ htm = req.load("http://sharerapid.cz/prihlaseni/",
post={"hash": hashes,
"login": user,
"pass1": data["password"],