From 21a0b9663af74c06b2a41a27b06c6fa3881f8a9b Mon Sep 17 00:00:00 2001 From: Walter Purcaro Date: Sun, 18 Oct 2015 18:52:10 +0200 Subject: Update accounts --- module/plugins/accounts/FilecloudIo.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'module/plugins/accounts/FilecloudIo.py') diff --git a/module/plugins/accounts/FilecloudIo.py b/module/plugins/accounts/FilecloudIo.py index d80a8b9d6..de1636520 100644 --- a/module/plugins/accounts/FilecloudIo.py +++ b/module/plugins/accounts/FilecloudIo.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- -from module.common.json_layer import json_loads +from module.plugins.internal.utils import json from module.plugins.internal.Account import Account from module.plugins.internal.Plugin import set_cookie @@ -22,7 +22,7 @@ class FilecloudIo(Account): for _i in xrange(5): rep = self.load("https://secure.filecloud.io/api-fetch_apikey.api", post={'username': user, 'password': password}) - rep = json_loads(rep) + rep = json.loads(rep) if rep['status'] == "ok": break elif rep['status'] == "error" and rep['message'] == "no such user or wrong password": @@ -35,7 +35,7 @@ class FilecloudIo(Account): self.accounts[user]['akey'] = akey #: Saved for hoster plugin rep = self.load("http://api.filecloud.io/api-fetch_account_details.api", post={'akey': akey}) - rep = json_loads(rep) + rep = json.loads(rep) if rep['is_premium'] == 1: return {'validuntil': float(rep['premium_until']), 'trafficleft': -1} -- cgit v1.2.3