summaryrefslogtreecommitdiffstats
path: root/module/plugins/hoster/RapidgatorNet.py
diff options
context:
space:
mode:
authorGravatar Walter Purcaro <vuolter@users.noreply.github.com> 2015-10-18 19:14:29 +0200
committerGravatar Walter Purcaro <vuolter@users.noreply.github.com> 2015-10-18 19:14:29 +0200
commit9d9618ab35071f36840fe51e63fe2f887131dc5a (patch)
tree47028e89e5a7a2ede5e1d0eddfa7930ba367baf6 /module/plugins/hoster/RapidgatorNet.py
parent[SimpleCrypter] Don't use self.link(s) (diff)
downloadpyload-9d9618ab35071f36840fe51e63fe2f887131dc5a.tar.xz
Update hosters
Diffstat (limited to 'module/plugins/hoster/RapidgatorNet.py')
-rw-r--r--module/plugins/hoster/RapidgatorNet.py16
1 files changed, 8 insertions, 8 deletions
diff --git a/module/plugins/hoster/RapidgatorNet.py b/module/plugins/hoster/RapidgatorNet.py
index bb4622386..0c515bb2f 100644
--- a/module/plugins/hoster/RapidgatorNet.py
+++ b/module/plugins/hoster/RapidgatorNet.py
@@ -3,7 +3,7 @@
import pycurl
import re
-from module.common.json_layer import json_loads
+from module.plugins.internal.utils import json
from module.network.HTTPRequest import BadHeader
from module.plugins.captcha.AdsCaptcha import AdsCaptcha
from module.plugins.captcha.ReCaptcha import ReCaptcha
@@ -65,13 +65,13 @@ class RapidgatorNet(SimpleHoster):
def api_response(self, cmd):
try:
- json = self.load('%s/%s' % (self.API_URL, cmd),
+ html = self.load('%s/%s' % (self.API_URL, cmd),
get={'sid': self.sid,
'url': self.pyfile.url})
- self.log_debug("API:%s" % cmd, json, "SID: %s" % self.sid)
- json = json_loads(json)
- status = json['response_status']
- msg = json['response_details']
+ self.log_debug("API:%s" % cmd, html, "SID: %s" % self.sid)
+ jso = json.loads(html)
+ status = jso['response_status']
+ msg = jso['response_details']
except BadHeader, e:
self.log_error("API: %s" % cmd, e, "SID: %s" % self.sid)
@@ -79,7 +79,7 @@ class RapidgatorNet(SimpleHoster):
msg = e
if status == 200:
- return json['response']
+ return jso['response']
elif status == 423:
self.account.empty()
@@ -156,7 +156,7 @@ class RapidgatorNet(SimpleHoster):
if not res.startswith('{'):
self.retry()
self.log_debug(url, res)
- return json_loads(res)
+ return json.loads(res)
getInfo = create_getInfo(RapidgatorNet)