diff options
Diffstat (limited to 'module/plugins/accounts/CzshareCom.py')
-rw-r--r-- | module/plugins/accounts/CzshareCom.py | 9 |
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 |