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.py18
1 files changed, 9 insertions, 9 deletions
diff --git a/module/plugins/hoster/LuckyShareNet.py b/module/plugins/hoster/LuckyShareNet.py
index dc8f6448b..d12f84623 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
@@ -10,7 +10,7 @@ from module.plugins.internal.SimpleHoster import SimpleHoster, create_getInfo
class LuckyShareNet(SimpleHoster):
__name__ = "LuckyShareNet"
__type__ = "hoster"
- __version__ = "0.10"
+ __version__ = "0.11"
__status__ = "testing"
__pattern__ = r'https?://(?:www\.)?luckyshare\.net/(?P<ID>\d{10,})'
@@ -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)