Pass back peers from Web UI when adding a magnet in attempt to speed it up
This commit is contained in:
parent
21b1bd9e7d
commit
f337ab1837
8 changed files with 77 additions and 27 deletions
|
|
@ -437,7 +437,7 @@ async fn async_main(opts: Opts, spawner: BlockingSpawner) -> anyhow::Result<()>
|
|||
)
|
||||
.await
|
||||
{
|
||||
Ok(ApiAddTorrentResponse { id, details }) => {
|
||||
Ok(ApiAddTorrentResponse { id, details, .. }) => {
|
||||
if let Some(id) = id {
|
||||
info!("{} added to the server with index {}. Query {}/torrents/{}/(stats/haves) for details", details.info_hash, id, http_api_url, id)
|
||||
}
|
||||
|
|
@ -509,6 +509,7 @@ async fn async_main(opts: Opts, spawner: BlockingSpawner) -> anyhow::Result<()>
|
|||
info_hash: _,
|
||||
info,
|
||||
only_files,
|
||||
..
|
||||
}) => {
|
||||
for (idx, (filename, len)) in
|
||||
info.iter_filenames_and_lengths()?.enumerate()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue