casey / intermodal

A command-line utility for BitTorrent torrent file creation, verification, and more
https://imdl.io
Creative Commons Zero v1.0 Universal
487 stars 25 forks source link

Add a `torrent from-link` subcommand #511

Closed atomgardner closed 1 year ago

atomgardner commented 1 year ago

This is a first cut of the peer protocol and from-link subcommand.

~Would love if you could give it a quick review. It obviously needs more tests.~

~This has tests now. I have local patch that adds a --thread-per-peer flag, and it speeds things up like 100 fold, but it is extremely hacky.~

The command now uses rayon, and is acceptably quick. It'd be quicker if it pipelined peers from the tracker.

atomgardner commented 1 year ago

One more thing to do before merging: