From 4783f31deb5c2333bbda4a9bfcb3ea76d8c3c78d Mon Sep 17 00:00:00 2001 From: Marcos Pinto Date: Sun, 5 Aug 2007 06:22:46 +0000 Subject: [PATCH] allow plugin to specify output path --- src/interface.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/interface.py b/src/interface.py index cc2553c36..8d7b7be1c 100644 --- a/src/interface.py +++ b/src/interface.py @@ -1018,7 +1018,7 @@ class DelugeGTK: filename = common.fetch_url(url) if filename: self.interactive_add_torrent(filename) - + def interactive_add_torrent(self, torrent): if self.config.get('use_default_dir'): path = self.config.get('default_download_path') @@ -1026,7 +1026,10 @@ class DelugeGTK: path = dialogs.show_directory_chooser_dialog(self.window) if path is None: return - + + self.interactive_add_torrent_path(self, torrent, path) + + def interactive_add_torrent_path(self, torrent, path): try: dumped_torrent = self.manager.dump_torrent_file_info(torrent) if self.config.get('enable_files_dialog'):