diff options
author | Jeix <devnull@localhost> | 2011-04-14 20:05:45 +0200 |
---|---|---|
committer | Jeix <devnull@localhost> | 2011-04-14 20:05:45 +0200 |
commit | 5bd7b52cbd35c50e13e3797ab194c1dbb86c2d76 (patch) | |
tree | 186482ebda1416c1c854fe9f387e40f87e179f22 /module/plugins/accounts/RapidshareCom.py | |
parent | shragle fix (diff) | |
download | pyload-5bd7b52cbd35c50e13e3797ab194c1dbb86c2d76.tar.xz |
Rapidshare fix
Diffstat (limited to 'module/plugins/accounts/RapidshareCom.py')
-rw-r--r-- | module/plugins/accounts/RapidshareCom.py | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/module/plugins/accounts/RapidshareCom.py b/module/plugins/accounts/RapidshareCom.py index a2bb30211..060424ccc 100644 --- a/module/plugins/accounts/RapidshareCom.py +++ b/module/plugins/accounts/RapidshareCom.py @@ -21,7 +21,7 @@ from module.plugins.Account import Account class RapidshareCom(Account): __name__ = "RapidshareCom" - __version__ = "0.1" + __version__ = "0.2" __type__ = "account" __description__ = """Rapidshare.com account plugin""" __author_name__ = ("mkaay") @@ -42,9 +42,7 @@ class RapidshareCom(Account): k, v = t.split("=") info[k] = v - restkb = int(info["tskb"]) - maxtraffic = int(info["rapids"])/14 * (5*1024*1024) + restkb - tmp = {"validuntil":int(info["billeduntil"]), "trafficleft":maxtraffic if int(info["autorefill"]) else restkb, "maxtraffic":maxtraffic} + tmp = {"validuntil":int(info["billeduntil"]), "trafficleft":-1, "maxtraffic":-1} return tmp |