Open paxter opened 3 years ago
Looking at the v2 specification, it seems like the only thing for this library is to rework the BencodeTorrent methods that involves files (getSize
, getFileList
, hasFiles
, and getGazelleFileList
) such that it looks for $this->data['info']['file tree']
, otherwise falls back to $this->data['info']['files']
.
I make a fork Rhilip/Bencode, the Class Rhilip\Bencode\TorrentFile
support both bittorrent v1 and v2
Are there any plans to implement specification v2 (BEP 52)? Some clients already implemented this.
https://www.bittorrent.org/beps/bep_0052.html https://blog.libtorrent.org/2020/09/bittorrent-v2/