poeml / mirrorbrain

MirrorBrain
http://mirrorbrain.org/
Other
75 stars 37 forks source link

Torrent v2 format support #188

Open Artoria2e5 opened 1 year ago

Artoria2e5 commented 1 year ago

BitTorrent v2 has been a thing since 2020. A good technical overview is given by https://blog.libtorrent.org/2020/09/bittorrent-v2/. In short, it:

These changes necessarily change the info-hash, for which they have made a new thing called "btmh" based around, you guessed it, SHA256. It is possible to make a hybrid v1/v2 file, though the file size will approximately double.

What does it mean for mirrorbrain? Well...

The LTv2 documentation also mentions tightened bencode requirements. The url-list and sources behavior in https://github.com/poeml/mirrorbrain/blob/76f2909e33004a7f5e0dd52b816881eb9fbd4246/docs/configuration.rst#generating-torrents, if it still exists, needs to be removed.