summaryrefslogtreecommitdiffstats
path: root/module/plugins/accounts
diff options
context:
space:
mode:
authorGravatar BlackSmith <git@blackserver.cz> 2014-04-18 15:48:34 +0200
committerGravatar Stefano <l.stickell@yahoo.it> 2014-04-18 15:48:34 +0200
commitdc66f2c638c3c87e699d2a8344f53f9bbe8b36c8 (patch)
tree818192f96455b3826bf75df078225fe694ae4a4a /module/plugins/accounts
parentFix some container __pattern__ (diff)
downloadpyload-dc66f2c638c3c87e699d2a8344f53f9bbe8b36c8.tar.xz
Czshare renamed to Sdilej
Merges #584
Diffstat (limited to 'module/plugins/accounts')
-rw-r--r--module/plugins/accounts/CzshareCom.py9
1 files changed, 4 insertions, 5 deletions
diff --git a/module/plugins/accounts/CzshareCom.py b/module/plugins/accounts/CzshareCom.py
index fc0b98793..bdd2000c9 100644
--- a/module/plugins/accounts/CzshareCom.py
+++ b/module/plugins/accounts/CzshareCom.py
@@ -25,16 +25,16 @@ from module.plugins.Account import Account
class CzshareCom(Account):
__name__ = "CzshareCom"
- __version__ = "0.13"
+ __version__ = "0.14"
__type__ = "account"
- __description__ = """Czshare.com account plugin"""
+ __description__ = """Czshare.com account plugin, now Sdilej.cz"""
__author_name__ = ("zoidberg", "stickell")
__author_mail__ = ("zoidberg@mujmail.cz", "l.stickell@yahoo.it")
CREDIT_LEFT_PATTERN = r'<tr class="active">\s*<td>([0-9 ,]+) (KiB|MiB|GiB)</td>\s*<td>([^<]*)</td>\s*</tr>'
def loadAccountInfo(self, user, req):
- html = req.load("http://czshare.com/prehled_kreditu/")
+ html = req.load("http://sdilej.cz/prehled_kreditu/")
found = re.search(self.CREDIT_LEFT_PATTERN, html)
if not found:
@@ -46,8 +46,7 @@ class CzshareCom(Account):
return {"validuntil": validuntil, "trafficleft": credits}
def login(self, user, data, req):
-
- html = req.load('https://czshare.com/index.php', post={
+ html = req.load('https://sdilej.cz/index.php', post={
"Prihlasit": "Prihlasit",
"login-password": data["password"],
"login-name": user