torrenttools
torrenttools copied to clipboard
`torrenttools show infohash --protocol=2` should not show v1 hash
torrenttools v0.6.2 always returns the v1 hash
$ torrenttools show infohash --protocol=1 test.torrent
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
$ torrenttools show infohash --protocol=2 test.torrent
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
$ torrenttools show infohash --protocol=3 test.torrent
Error: Invalid bittorrent protocol: 3
expected:
torrenttools show infohash --protocol=2 should print nothing on v1-only torrents