allow plugin to specify output path
This commit is contained in:
parent
b34219bd9c
commit
4783f31deb
|
@ -1018,7 +1018,7 @@ class DelugeGTK:
|
||||||
filename = common.fetch_url(url)
|
filename = common.fetch_url(url)
|
||||||
if filename:
|
if filename:
|
||||||
self.interactive_add_torrent(filename)
|
self.interactive_add_torrent(filename)
|
||||||
|
|
||||||
def interactive_add_torrent(self, torrent):
|
def interactive_add_torrent(self, torrent):
|
||||||
if self.config.get('use_default_dir'):
|
if self.config.get('use_default_dir'):
|
||||||
path = self.config.get('default_download_path')
|
path = self.config.get('default_download_path')
|
||||||
|
@ -1026,7 +1026,10 @@ class DelugeGTK:
|
||||||
path = dialogs.show_directory_chooser_dialog(self.window)
|
path = dialogs.show_directory_chooser_dialog(self.window)
|
||||||
if path is None:
|
if path is None:
|
||||||
return
|
return
|
||||||
|
|
||||||
|
self.interactive_add_torrent_path(self, torrent, path)
|
||||||
|
|
||||||
|
def interactive_add_torrent_path(self, torrent, path):
|
||||||
try:
|
try:
|
||||||
dumped_torrent = self.manager.dump_torrent_file_info(torrent)
|
dumped_torrent = self.manager.dump_torrent_file_info(torrent)
|
||||||
if self.config.get('enable_files_dialog'):
|
if self.config.get('enable_files_dialog'):
|
||||||
|
|
Loading…
Reference in New Issue