diff options
author | zoidberg10 <zoidberg@mujmail.cz> | 2012-02-27 22:56:22 +0100 |
---|---|---|
committer | zoidberg10 <zoidberg@mujmail.cz> | 2012-02-27 22:56:22 +0100 |
commit | 4d25665bb3e8cf7c22a9efc6a3bbf29f29856642 (patch) | |
tree | 43311c5f380582bd22c46d3d9a1b6fba83266845 /module/plugins/accounts | |
parent | Single "if" check instead of two. (diff) | |
download | pyload-4d25665bb3e8cf7c22a9efc6a3bbf29f29856642.tar.xz |
Diffstat (limited to 'module/plugins/accounts')
-rw-r--r-- | module/plugins/accounts/RapidshareCom.py | 7 |
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 |