add scrape separator

This commit is contained in:
yggverse 2025-09-09 15:50:09 +03:00
parent 164e562acd
commit ef2ae562ac

View file

@ -374,7 +374,7 @@ fn list(state: &State, keyword: Option<&str>, page: Option<usize>) -> Result<Str
state state
.scrape .scrape
.get(i.info_hash.0) .get(i.info_hash.0)
.map(|s| format!("{}{}{}", s.seeders, s.peers, s.leechers)) .map(|s| format!("{}{}{}", s.seeders, s.peers, s.leechers))
.unwrap_or_default() .unwrap_or_default()
)); ));
} }
@ -449,7 +449,7 @@ fn info(state: &State, torrent: Torrent) -> Result<String> {
state state
.scrape .scrape
.get(i.info_hash.0) .get(i.info_hash.0)
.map(|s| format!("{}{}{}", s.seeders, s.peers, s.leechers)) .map(|s| format!("{}{}{}", s.seeders, s.peers, s.leechers))
.unwrap_or_default() .unwrap_or_default()
)); ));