mirror of
https://github.com/YGGverse/btracker.git
synced 2026-03-31 17:15:31 +00:00
use librqbit_core::hash_id::Id to parse info-hash from string
This commit is contained in:
parent
3e94c483d6
commit
a3e3cb0897
4 changed files with 12 additions and 12 deletions
|
|
@ -73,7 +73,7 @@ fn index(
|
|||
.map(|t| t.format(&meta.format_time).to_string()),
|
||||
indexed: torrent.time.format(&meta.format_time).to_string(),
|
||||
magnet: format::magnet(&torrent.info_hash, meta.trackers.as_ref()),
|
||||
scrape: scraper.scrape(torrent.info_hash.as_bytes()),
|
||||
scrape: scraper.scrape(&torrent.info_hash),
|
||||
size: format::bytes(torrent.size),
|
||||
files: torrent.files.as_ref().map_or("1 file".into(), |f| {
|
||||
let l = f.len();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue