diff --git a/src/main.rs b/src/main.rs index 67a8dcf..a734526 100644 --- a/src/main.rs +++ b/src/main.rs @@ -339,15 +339,13 @@ fn info(config: &Config, torrent: Torrent) -> Result { let mut b = Vec::new(); - b.push(format!("# {}\n", config.name)); - b.push(format!( - "## {}\n", + "# {}\n", i.info .name .as_ref() .map(|n| n.to_string()) - .unwrap_or_default() + .unwrap_or(config.name.clone()) )); b.push(format!(