'file name (for single-file torrents) or directory name (for batch torrents) to save the torrent as, overriding the default name in the torrent. See also --save_in, if neither is specified the user will be asked for save location'),
('advanced', 0,
"display advanced user interface"),
('next_torrent_time', 300,
'the maximum number of minutes to seed a completed torrent before stopping seeding'),
('next_torrent_ratio', 80,
'the minimum upload/download ratio, in percent, to achieve before stopping seeding. 0 means no limit.'),
('last_torrent_ratio', 0,
'the minimum upload/download ratio, in percent, to achieve before stopping seeding the last torrent. 0 means no limit.'),
('pause', 0,
'start downloader in paused state'),
('dnd_behavior', 'replace',
''),
])
if ui in ('btdownloadcurses', 'btdownloadheadless'):
r.append(
('save_as', '',
'file name (for single-file torrents) or directory name (for batch torrents) to save the torrent as, overriding the default name in the torrent. See also --save_in'))
if ui.startswith('btdownload'):
r.extend([
('max_uploads', -1,
"the maximum number of uploads to allow at once. -1 means a (hopefully) reasonable number based on --max_upload_rate. The automatic values are only sensible when running one torrent at once."),
('save_in', '',
'local directory where the torrent contents will be saved. The file (single-file torrents) or directory (batch torrents) will be created under this directory using the default name specified in the .torrent file. See also --save_as.'),
('responsefile', '',
'file the server response was stored in, alternative to url'),
('url', '',
'url to get file from, alternative to responsefile'),
('ask_for_save', 0,
'whether or not to ask for a location to save downloaded files in'),
])
if ui.startswith('btlaunchmany'):
r.extend([
('max_uploads', 6,
"the maximum number of uploads to allow at once. -1 means a (hopefully) reasonable number based on --max_upload_rate. The automatic values are only sensible when running one torrent at once."),
('save_in', '',
'local directory where the torrents will be saved, using a name determined by --saveas_style. If this is left empty each torrent will be saved under the directory of the corresponding .torrent file'),
('parse_dir_interval', 60,
"how often to rescan the torrent directory, in seconds" ),
('saveas_style', 1,
"How to name torrent downloads (1 = rename to torrent name, " +
"2 = save under name in torrent, 3 = save in directory under torrent name)" ),
('display_path', ui == 'btlaunchmany' and 1 or 0,
"whether to display the full path or the torrent contents for each torrent" ),
])
if ui.startswith('btlaunchmany') or ui == 'btmaketorrentgui':
r.append(
('torrent_dir', '',
'directory to look for .torrent files (semi-recursive)'),)
if ui in ('btdownloadcurses', 'btdownloadheadless'):