diff options
author | RaNaN <Mast3rRaNaN@hotmail.de> | 2011-05-28 17:06:55 +0200 |
---|---|---|
committer | RaNaN <Mast3rRaNaN@hotmail.de> | 2011-05-28 17:06:55 +0200 |
commit | 3fe887026d035422a01a8bf5c76686370ed58dd5 (patch) | |
tree | 6db7e571acfc2241d128b4aa81dd5f5081cb38b6 /module/plugins | |
parent | change password in webif (diff) | |
download | pyload-3fe887026d035422a01a8bf5c76686370ed58dd5.tar.xz |
fix dlc, new cli functions, new locale
Diffstat (limited to 'module/plugins')
-rw-r--r-- | module/plugins/PluginManager.py | 2 | ||||
-rw-r--r-- | module/plugins/accounts/FilesonicCom.py | 10 |
2 files changed, 6 insertions, 6 deletions
diff --git a/module/plugins/PluginManager.py b/module/plugins/PluginManager.py index 9f59cb1de..f583f91de 100644 --- a/module/plugins/PluginManager.py +++ b/module/plugins/PluginManager.py @@ -247,7 +247,7 @@ class PluginManager(): if plugin.has_key("new_name"): return plugin["new_name"] - return plugin["name"] + return name diff --git a/module/plugins/accounts/FilesonicCom.py b/module/plugins/accounts/FilesonicCom.py index 7ea7ea7cb..9f57809ad 100644 --- a/module/plugins/accounts/FilesonicCom.py +++ b/module/plugins/accounts/FilesonicCom.py @@ -22,10 +22,10 @@ from time import mktime, strptime from module.plugins.Account import Account -try:
- from json import loads as json_loads
-except ImportError: # pragma: no cover
- from module.lib.simplejson import loads as json_loads
+try: + from json import loads as json_loads +except ImportError: # pragma: no cover + from module.lib.simplejson import loads as json_loads class FilesonicCom(Account): @@ -45,7 +45,7 @@ class FilesonicCom(Account): post = {"u": user, "p" : self.accounts[user]["password"]} ).decode("utf8") - self.core.log.debug(_("%s: account status retrieved from api %s" % (self.__name__,xml))) + self.core.log.debug("%s: account status retrieved from api %s" % (self.__name__,xml)) json = json_loads(xml) if json["FSApi_User"]["getInfo"]["status"] != "success": self.core.log.error(_("%s: Invalid login retrieving user details" % self.__name__)) |