summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar spoob <spoob@gmx.de> 2009-08-14 14:13:12 +0200
committerGravatar spoob <spoob@gmx.de> 2009-08-14 14:13:12 +0200
commit2ec98183a8fc44e2f2da62a5e820d61250b66489 (patch)
tree23a38d43ee7ed369c896d16e7f11b7fe8d21bd43
parentadded --url and --list params (diff)
downloadpyload-2ec98183a8fc44e2f2da62a5e820d61250b66489.tar.xz
fixed little bugs
-rwxr-xr-xpyLoadCore.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/pyLoadCore.py b/pyLoadCore.py
index 9c9ff0eb8..f848d8cdf 100755
--- a/pyLoadCore.py
+++ b/pyLoadCore.py
@@ -64,8 +64,10 @@ class Core(object):
if self.config['debug_mode']:
self.init_logger(logging.DEBUG) # logging level
+ self.print_test_status = True
else:
self.init_logger(logging.INFO) # logging level
+ self.print_test_status = False
self.check_update()
@@ -317,7 +319,7 @@ class Core(object):
self.add_links([params])
elif option in ("-l", "--list"):
list = open(params, 'r').readlines()
- self.add_links(link)
+ self.add_links(list)
self.logger.info("Add list:" + params)
self.read_links()