From 7be512656c00ef91350f003c6b12363133b82515 Mon Sep 17 00:00:00 2001 From: Marcos Pinto Date: Sun, 26 Aug 2007 07:24:11 +0000 Subject: [PATCH] pause torrents during import --- plugins/BlocklistImport/__init__.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/plugins/BlocklistImport/__init__.py b/plugins/BlocklistImport/__init__.py index 627f319b3..4623f8e3f 100644 --- a/plugins/BlocklistImport/__init__.py +++ b/plugins/BlocklistImport/__init__.py @@ -51,7 +51,6 @@ class BlocklistImport: self.core = core self.interface = interface self.cancelled = False - self.gtkconf = GTKConfig(self) self.gtkprog = GTKProgress(self) self.nimported = 0 @@ -100,6 +99,9 @@ class BlocklistImport: self.gtkprog.stop() return + print "Pausing all torrents ..." + self.core.pause_all() + print "Starting import" ips = reader.next() curr = 0 @@ -127,6 +129,8 @@ class BlocklistImport: self.gtkprog.stop() self.cancelled = False + print "Resuming all torrents ..." + self.core.resume_all() def configure(self, window): self.gtkconf.start(self.config.get('listtype'),