summaryrefslogtreecommitdiffstats
path: root/module/plugins/hoster/SmoozedCom.py
diff options
context:
space:
mode:
Diffstat (limited to 'module/plugins/hoster/SmoozedCom.py')
-rw-r--r--module/plugins/hoster/SmoozedCom.py12
1 files changed, 5 insertions, 7 deletions
diff --git a/module/plugins/hoster/SmoozedCom.py b/module/plugins/hoster/SmoozedCom.py
index fbacac570..c2cc1f987 100644
--- a/module/plugins/hoster/SmoozedCom.py
+++ b/module/plugins/hoster/SmoozedCom.py
@@ -1,13 +1,13 @@
# -*- coding: utf-8 -*-
-from module.plugins.internal.MultiHoster import MultiHoster, create_getInfo
-from module.plugins.internal.utils import json
+from module.plugins.internal.MultiHoster import MultiHoster
+from module.plugins.internal.misc import json
class SmoozedCom(MultiHoster):
__name__ = "SmoozedCom"
__type__ = "hoster"
- __version__ = "0.12"
+ __version__ = "0.13"
__status__ = "testing"
__pattern__ = r'^unmatchable$' #: Since we want to allow the user to specify the list of hoster to use we let MultiHoster.activate
@@ -43,7 +43,8 @@ class SmoozedCom(MultiHoster):
get_data = {'session_key': self.account.get_data('session'),
'url' : pyfile.url}
- data = json.loads(self.load("http://www2.smoozed.com/api/check", get=get_data))
+ html = self.load("http://www2.smoozed.com/api/check", get=get_data)
+ data = json.loads(html)
if data['state'] != "ok":
self.fail(data['message'])
@@ -64,6 +65,3 @@ class SmoozedCom(MultiHoster):
self.fail(_("Unable to initialize download"))
else:
self.link = header.get('location')[-1] if isinstance(header.get('location'), list) else header.get('location')
-
-
-getInfo = create_getInfo(SmoozedCom)