From 1dd9631c8a9bf396d5e702f813c7e95b956f59c1 Mon Sep 17 00:00:00 2001 From: yggverse Date: Mon, 8 Sep 2025 16:18:01 +0300 Subject: [PATCH] use torrent name as page title --- src/main.rs | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) 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!(