feat: implement BEP-53 support

This commit is contained in:
pasta 2024-10-01 12:59:45 -05:00
parent 60728f1699
commit aa0c287fe5
No known key found for this signature in database
GPG key ID: E2F3D7916E722D38
4 changed files with 57 additions and 6 deletions

View file

@ -41,7 +41,7 @@ impl SerializedTorrent {
AddTorrent::TorrentFileBytes(self.torrent_bytes)
} else {
let magnet =
Magnet::from_id20(self.info_hash, self.trackers.into_iter().collect()).to_string();
Magnet::from_id20(self.info_hash, self.trackers.into_iter().collect(), self.only_files.clone()).to_string();
AddTorrent::from_url(magnet)
};