use torrent name as page title

This commit is contained in:
yggverse 2025-09-08 16:18:01 +03:00
parent 43052a0d38
commit 1dd9631c8a

View file

@ -339,15 +339,13 @@ fn info(config: &Config, torrent: Torrent) -> Result<String> {
let mut b = Vec::new(); let mut b = Vec::new();
b.push(format!("# {}\n", config.name));
b.push(format!( b.push(format!(
"## {}\n", "# {}\n",
i.info i.info
.name .name
.as_ref() .as_ref()
.map(|n| n.to_string()) .map(|n| n.to_string())
.unwrap_or_default() .unwrap_or(config.name.clone())
)); ));
b.push(format!( b.push(format!(