Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Support for v2 #4

Open
paxter opened this issue Jan 16, 2021 · 2 comments
Open

Support for v2 #4

paxter opened this issue Jan 16, 2021 · 2 comments

Comments

@paxter
Copy link

paxter commented Jan 16, 2021

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/

@itismadness
Copy link
Contributor

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'].

@Rhilip
Copy link

Rhilip commented Jul 13, 2022

I make a fork Rhilip/Bencode, the Class Rhilip\Bencode\TorrentFile support both bittorrent v1 and v2

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants