diff options
| author | 2009-12-10 21:38:03 +0100 | |
|---|---|---|
| committer | 2009-12-10 21:38:03 +0100 | |
| commit | 6fdfdd1f85b0e2d95bdc8955459c0465833831d6 (patch) | |
| tree | ce3b55aa257ced1c00fd23fec772c2230ca4bee3 /module | |
| parent | cleaned some code, pyLoad Script Support (closed #16) (diff) | |
| download | pyload-6fdfdd1f85b0e2d95bdc8955459c0465833831d6.tar.xz | |
create automatic script folders
Diffstat (limited to 'module')
| -rw-r--r-- | module/thread_list.py | 7 | 
1 files changed, 4 insertions, 3 deletions
| diff --git a/module/thread_list.py b/module/thread_list.py index 2faec1581..8c1695f38 100644 --- a/module/thread_list.py +++ b/module/thread_list.py @@ -199,13 +199,14 @@ class Thread_List(object):              except:                  ip = ""              time.sleep(1) +        scripts_reconnected(ip)          self.parent.logger.info("Reconnected, new IP: " + ip)      def scripts_download_preparing(self, pluginname, url): -    	for script in self.parent.scripts['download_preparing']: -    	    out = subprocess.Popen([script, pluginname, url], stdout=subprocess.PIPE) -    	    out.wait() +        for script in self.parent.scripts['download_preparing']: +            out = subprocess.Popen([script, pluginname, url], stdout=subprocess.PIPE) +            out.wait()      def scripts_download_finished(self, pluginname, url, filename, location):      	map(lambda script: subprocess.Popen([script, pluginname, url, filename, location], stdout=subprocess.PIPE), self.parent.scripts['download_finished']) | 
