From 958bf611f5d9d117f19f824990ec6fd6b537e967 Mon Sep 17 00:00:00 2001 From: RaNaN Date: Thu, 22 Dec 2011 23:45:38 +0100 Subject: accountmanager v2, delete your accounts.conf and re-enter them in pyload, new nice debug functions, try core.shell() and core.breakpoint() --- module/ThreadManager.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'module/ThreadManager.py') diff --git a/module/ThreadManager.py b/module/ThreadManager.py index 8937f4a29..033d80fdc 100644 --- a/module/ThreadManager.py +++ b/module/ThreadManager.py @@ -310,7 +310,8 @@ class ThreadManager: thread = PluginThread.DecrypterThread(self, job) def getLimit(self, thread): - limit = thread.active.plugin.account.getAccountData(thread.active.plugin.user)["options"].get("limitDL",["0"])[0] + limit = thread.active.plugin.account.options.get("limitDL","0") + if limit == "": limit = "0" return int(limit) def cleanup(self): -- cgit v1.2.3