summaryrefslogtreecommitdiffstats
path: root/module/plugins/hoster/LuckyShareNet.py
diff options
context:
space:
mode:
Diffstat (limited to 'module/plugins/hoster/LuckyShareNet.py')
-rw-r--r--module/plugins/hoster/LuckyShareNet.py16
1 files changed, 8 insertions, 8 deletions
diff --git a/module/plugins/hoster/LuckyShareNet.py b/module/plugins/hoster/LuckyShareNet.py
index dc8f6448b..47fc9d4a8 100644
--- a/module/plugins/hoster/LuckyShareNet.py
+++ b/module/plugins/hoster/LuckyShareNet.py
@@ -2,7 +2,7 @@
import re
-from module.common.json_layer import json_loads
+from module.plugins.internal.utils import json
from module.plugins.captcha.ReCaptcha import ReCaptcha
from module.plugins.internal.SimpleHoster import SimpleHoster, create_getInfo
@@ -38,7 +38,7 @@ class LuckyShareNet(SimpleHoster):
self.error(_("Unable to detect wait time between free downloads"))
elif 'Hash expired' in rep:
self.retry(msg=_("Hash expired"))
- return json_loads(rep)
+ return json.loads(rep)
#@TODO: There should be a filesize limit for free downloads
@@ -48,14 +48,14 @@ class LuckyShareNet(SimpleHoster):
self.log_debug("JSON: " + rep)
- json = self.parse_json(rep)
- self.wait(json['time'])
+ jso = self.parse_json(rep)
+ self.wait(jso['time'])
recaptcha = ReCaptcha(self)
response, challenge = recaptcha.challenge()
rep = self.load(r"http://luckyshare.net/download/verify/challenge/%s/response/%s/hash/%s" %
- (challenge, response, json['hash']))
+ (challenge, response, jso['hash']))
self.log_debug("JSON: " + rep)
@@ -64,9 +64,9 @@ class LuckyShareNet(SimpleHoster):
elif 'link' in rep:
self.captcha.correct()
- json.update(self.parse_json(rep))
- if json['link']:
- self.link = json['link']
+ jso.update(self.parse_json(rep))
+ if jso['link']:
+ self.link = jso['link']
getInfo = create_getInfo(LuckyShareNet)