summaryrefslogtreecommitdiffstats
path: root/pyload/plugins/account/CzshareCom.py
diff options
context:
space:
mode:
Diffstat (limited to 'pyload/plugins/account/CzshareCom.py')
-rw-r--r--pyload/plugins/account/CzshareCom.py12
1 files changed, 7 insertions, 5 deletions
diff --git a/pyload/plugins/account/CzshareCom.py b/pyload/plugins/account/CzshareCom.py
index dc8d513a5..54163c425 100644
--- a/pyload/plugins/account/CzshareCom.py
+++ b/pyload/plugins/account/CzshareCom.py
@@ -7,16 +7,17 @@ from pyload.plugins.base.Account import Account
class CzshareCom(Account):
- __name__ = "CzshareCom"
- __type__ = "account"
+ __name__ = "CzshareCom"
+ __type__ = "account"
__version__ = "0.14"
__description__ = """Czshare.com account plugin, now Sdilej.cz"""
- __authors__ = [("zoidberg", "zoidberg@mujmail.cz"),
- ("stickell", "l.stickell@yahoo.it")]
+ __license__ = "GPLv3"
+ __authors__ = [("zoidberg", "zoidberg@mujmail.cz"),
+ ("stickell", "l.stickell@yahoo.it")]
- CREDIT_LEFT_PATTERN = r'<tr class="active">\s*<td>([0-9 ,]+) (KiB|MiB|GiB)</td>\s*<td>([^<]*)</td>\s*</tr>'
+ CREDIT_LEFT_PATTERN = r'<tr class="active">\s*<td>([\d ,]+) (KiB|MiB|GiB)</td>\s*<td>([^<]*)</td>\s*</tr>'
def loadAccountInfo(self, user, req):
@@ -31,6 +32,7 @@ class CzshareCom(Account):
validuntil = mktime(strptime(m.group(3), '%d.%m.%y %H:%M'))
return {"validuntil": validuntil, "trafficleft": credits}
+
def login(self, user, data, req):
html = req.load('https://sdilej.cz/index.php', post={
"Prihlasit": "Prihlasit",