Add with_stats=true to torrents list

This commit is contained in:
Igor Katson 2024-11-06 17:19:33 +00:00
parent 30bfb3ea19
commit a90f245dc9
4 changed files with 37 additions and 18 deletions

View file

@ -684,7 +684,7 @@ async fn async_main(opts: Opts, cancel: CancellationToken) -> anyhow::Result<()>
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)
}
for file in details.files {
for file in details.files.into_iter().flat_map(|i| i.into_iter()) {
info!(
"file {:?}, size {}{}",
file.name,