summaryrefslogtreecommitdiffstats
path: root/module
diff options
context:
space:
mode:
authorGravatar Stefano <l.stickell@yahoo.it> 2013-02-18 22:05:23 +0100
committerGravatar Stefano <l.stickell@yahoo.it> 2013-02-18 22:05:23 +0100
commitb83015410ab094d7e3fa8c11fee0e4ef2053c2af (patch)
tree07d6ecf3b3b62afe22deb8c5cbb5d1759d822de4 /module
parentSpeedLoadOrg: Checksum verification implemented (diff)
downloadpyload-b83015410ab094d7e3fa8c11fee0e4ef2053c2af.tar.xz
Using the JSON parser
Diffstat (limited to 'module')
-rw-r--r--module/plugins/hoster/SpeedLoadOrg.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/module/plugins/hoster/SpeedLoadOrg.py b/module/plugins/hoster/SpeedLoadOrg.py
index e0d82ed08..b7599cabf 100644
--- a/module/plugins/hoster/SpeedLoadOrg.py
+++ b/module/plugins/hoster/SpeedLoadOrg.py
@@ -2,8 +2,8 @@
from module.plugins.internal.SimpleHoster import SimpleHoster, parseFileInfo
from module.network.RequestFactory import getURL
from module.plugins.ReCaptcha import ReCaptcha
+from module.common.json_layer import loads
import re
-from ast import literal_eval
def getInfo(urls):
@@ -20,7 +20,7 @@ class SpeedLoadOrg(SimpleHoster):
__name__ = "SpeedLoadOrg"
__type__ = "hoster"
__pattern__ = r"http://(www\.)?speedload\.org/(?P<ID>\w+).*"
- __version__ = "0.03"
+ __version__ = "0.04"
__description__ = """Speedload.org hoster plugin"""
__author_name__ = ("z00nx", "stickell")
__author_mail__ = ("z00nx0@gmail.com", "l.stickell@yahoo.it")
@@ -52,5 +52,5 @@ class SpeedLoadOrg(SimpleHoster):
def getApiData(self):
self.file_id = re.search(self.__pattern__, self.pyfile.url).group('ID')
- self.api_data = literal_eval(getURL(self.API_URL + self.file_id))
+ self.api_data = loads(getURL(self.API_URL + self.file_id))
self.api_data['size'] = self.api_data['fileSize']