summaryrefslogtreecommitdiffstats
path: root/module/plugins/accounts
diff options
context:
space:
mode:
authorGravatar zoidberg10 <zoidberg@mujmail.cz> 2012-02-27 22:56:22 +0100
committerGravatar zoidberg10 <zoidberg@mujmail.cz> 2012-02-27 22:56:22 +0100
commit4d25665bb3e8cf7c22a9efc6a3bbf29f29856642 (patch)
tree43311c5f380582bd22c46d3d9a1b6fba83266845 /module/plugins/accounts
parentSingle "if" check instead of two. (diff)
downloadpyload-4d25665bb3e8cf7c22a9efc6a3bbf29f29856642.tar.xz
fixed #532, #543, letitbit, extabit, linkdecrypter; allow rs+nl.in free account
Diffstat (limited to 'module/plugins/accounts')
-rw-r--r--module/plugins/accounts/RapidshareCom.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/module/plugins/accounts/RapidshareCom.py b/module/plugins/accounts/RapidshareCom.py
index e69f17e62..15722e099 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.21"
+ __version__ = "0.22"
__type__ = "account"
__description__ = """Rapidshare.com account plugin"""
__author_name__ = ("mkaay")
@@ -41,8 +41,11 @@ class RapidshareCom(Account):
continue
k, v = t.split("=")
info[k] = v
+
+ validuntil = int(info["billeduntil"])
+ premium = True if validuntil else False
- tmp = {"validuntil":int(info["billeduntil"]), "trafficleft":-1, "maxtraffic":-1}
+ tmp = {"premium": premium, "validuntil": validuntil, "trafficleft":-1, "maxtraffic":-1}
return tmp