summaryrefslogtreecommitdiffstats
path: root/module/plugins/accounts/NetloadIn.py
diff options
context:
space:
mode:
authorGravatar CryNickSystems <d.hardtke@yahoo.de> 2012-04-15 22:46:18 +0200
committerGravatar CryNickSystems <d.hardtke@yahoo.de> 2012-04-15 22:46:18 +0200
commitaff166418895ce39da5f009992c088c97a0df5a6 (patch)
tree52daa3d97e193d1c67b0ef3d5acd319f68ff18b2 /module/plugins/accounts/NetloadIn.py
parentversion bumps (diff)
downloadpyload-aff166418895ce39da5f009992c088c97a0df5a6.tar.xz
Netload.in RegEx Fix
Diffstat (limited to 'module/plugins/accounts/NetloadIn.py')
-rwxr-xr-xmodule/plugins/accounts/NetloadIn.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/module/plugins/accounts/NetloadIn.py b/module/plugins/accounts/NetloadIn.py
index 6febf2ff1..72d9ab554 100755
--- a/module/plugins/accounts/NetloadIn.py
+++ b/module/plugins/accounts/NetloadIn.py
@@ -23,18 +23,18 @@ from time import time
class NetloadIn(Account):
__name__ = "NetloadIn"
- __version__ = "0.2"
+ __version__ = "0.21"
__type__ = "account"
__description__ = """netload.in account plugin"""
- __author_name__ = ("RaNaN", "DHMH")
- __author_mail__ = ("RaNaN@pyload.org", "DHMH@pyload.org")
+ __author_name__ = ("RaNaN", "CryNickSystems")
+ __author_mail__ = ("RaNaN@pyload.org", "webmaster@pcProfil.de")
def loadAccountInfo(self, user, req):
- page = req.load("http://netload.in/index.php?id=2")
- left = r">(\d+) Tage, (\d+) Stunden<"
+ page = req.load("http://netload.in/index.php?id=2&lang=de")
+ left = r">(\d+) (Tag|Tage), (\d+) Stunden<"
left = re.search(left, page)
if left:
- validuntil = time() + int(left.group(1)) * 24 * 60 * 60 + int(left.group(2)) * 60 * 60
+ validuntil = time() + int(left.group(1)) * 24 * 60 * 60 + int(left.group(3)) * 60 * 60
trafficleft = -1
premium = True
else: