summaryrefslogtreecommitdiffstats
path: root/module/thread_list.py
diff options
context:
space:
mode:
authorGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2009-06-15 20:49:48 +0200
committerGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2009-06-15 20:49:48 +0200
commit2d4fa507b41979a3c741170871720f5038a5b883 (patch)
tree7d4007449a167e979d250e118fd7bc2f487c04bd /module/thread_list.py
parentAdded Stealth.to Container Plugin (diff)
downloadpyload-2d4fa507b41979a3c741170871720f5038a5b883.tar.xz
new file list class
Diffstat (limited to 'module/thread_list.py')
-rw-r--r--module/thread_list.py14
1 files changed, 6 insertions, 8 deletions
diff --git a/module/thread_list.py b/module/thread_list.py
index 615c39243..a7e92b77d 100644
--- a/module/thread_list.py
+++ b/module/thread_list.py
@@ -1,7 +1,7 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-
#
-#Copyright (C) 2009 sp00b, sebnapi
+#Copyright (C) 2009 sp00b, sebnapi, RaNaN
#
#This program is free software; you can redistribute it and/or modify
#it under the terms of the GNU General Public License as published by
@@ -41,13 +41,14 @@ class Thread_List(object):
self.pause = False
self.reconnecting = False
+ self.select_thread()
+
def create_thread(self):
""" creates thread for Py_Load_File and append thread to self.threads
"""
- if self.py_load_files:
- thread = Download_Thread(self)
- self.threads.append(thread)
- return True
+ thread = Download_Thread(self)
+ self.threads.append(thread)
+ return True
def get_loaded_urls(self):
loaded_urls = []
@@ -130,9 +131,6 @@ class Thread_List(object):
self.lock.release()
return True
- def extend_py_load_files(self):
- pass
-
def select_thread(self):
""" select a thread
"""