diff options
author | Walter Purcaro <vuolter@users.noreply.github.com> | 2015-06-17 19:24:49 +0200 |
---|---|---|
committer | Walter Purcaro <vuolter@users.noreply.github.com> | 2015-06-24 22:42:50 +0200 |
commit | 9305859b64a2f0aef3f27fb7e5b75caa0cb836a6 (patch) | |
tree | bdbb4710a4070131e1257a90a69abf4b6d080ee1 /module/plugins/hoster/SmoozedCom.py | |
parent | Spare code cosmetics (2) (diff) | |
download | pyload-9305859b64a2f0aef3f27fb7e5b75caa0cb836a6.tar.xz |
Spare code cosmetics (3)
Diffstat (limited to 'module/plugins/hoster/SmoozedCom.py')
-rw-r--r-- | module/plugins/hoster/SmoozedCom.py | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/module/plugins/hoster/SmoozedCom.py b/module/plugins/hoster/SmoozedCom.py index af6c8b68e..ab8e7b714 100644 --- a/module/plugins/hoster/SmoozedCom.py +++ b/module/plugins/hoster/SmoozedCom.py @@ -39,17 +39,17 @@ class SmoozedCom(MultiHoster): data = json_loads(self.load("http://www2.smoozed.com/api/check", get=get_data)) - if data["state"] != "ok": - self.fail(data["message"]) + if data['state'] != "ok": + self.fail(data['message']) - if data["data"].get("state", "ok") != "ok": - if data["data"] == "Offline": + if data['data'].get("state", "ok") != "ok": + if data['data'] == "Offline": self.offline() else: - self.fail(data["data"]["message"]) + self.fail(data['data']['message']) - pyfile.name = data["data"]["name"] - pyfile.size = int(data["data"]["size"]) + pyfile.name = data['data']['name'] + pyfile.size = int(data['data']['size']) #: Start the download header = self.load("http://www2.smoozed.com/api/download", get=get_data, just_header=True) @@ -57,4 +57,4 @@ class SmoozedCom(MultiHoster): if not "location" in header: self.fail(_("Unable to initialize download")) else: - self.link = header["location"][-1] if isinstance(header["location"], list) else header["location"] + self.link = header['location'][-1] if isinstance(header['location'], list) else header['location'] |