diff options
Diffstat (limited to 'module/plugins/accounts')
-rw-r--r-- | module/plugins/accounts/RapidgatorNet.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/module/plugins/accounts/RapidgatorNet.py b/module/plugins/accounts/RapidgatorNet.py index acd7a547b..2fc266722 100644 --- a/module/plugins/accounts/RapidgatorNet.py +++ b/module/plugins/accounts/RapidgatorNet.py @@ -9,7 +9,7 @@ from module.common.json_layer import json_loads class RapidgatorNet(Account): __name__ = "RapidgatorNet" __type__ = "account" - __version__ = "0.12" + __version__ = "0.13" __status__ = "testing" __description__ = """Rapidgator.net account plugin""" @@ -17,7 +17,7 @@ class RapidgatorNet(Account): __authors__ = [("zoidberg", "zoidberg@mujmail.cz")] - API_URL = "http://rapidgator.net/api/user" + API_URL = "http://rapidgator.net/api/user/" def parse_info(self, user, password, data, req): @@ -30,7 +30,7 @@ class RapidgatorNet(Account): sid = self.get_data(user).get('sid', None) assert sid - html = self.load(urlparse.urljoin(self.API_URL, "user/info"), + html = self.load(urlparse.urljoin(self.API_URL, "info"), get={'sid': sid}) self.log_debug("API:USERINFO", html) @@ -58,7 +58,7 @@ class RapidgatorNet(Account): def login(self, user, password, data, req): try: - html = self.load(urlparse.urljoin(self.API_URL, "user/login"), + html = self.load(urlparse.urljoin(self.API_URL, "login"), post={'username': user, 'password': password}) |