mirror of
https://github.com/YGGverse/btracker-gemini.git
synced 2026-03-31 17:15:30 +00:00
use torrent name as page title
This commit is contained in:
parent
43052a0d38
commit
1dd9631c8a
1 changed files with 2 additions and 4 deletions
|
|
@ -339,15 +339,13 @@ fn info(config: &Config, torrent: Torrent) -> Result<String> {
|
|||
|
||||
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!(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue