juliensalinas / torrengo

Torrengo is a CLI (command line) program written in Go which concurrently searches torrents from various sources.
https://juliensalinas.com/en/golang-concurrent-torrent-scraper-cli-torrengo/
GNU General Public License v3.0
98 stars 15 forks source link

Feature request: webtorrent support #8

Closed clemlatz closed 4 years ago

clemlatz commented 4 years ago

I'd love to have webtorrent-cli support.

Downloads are started with the webtorrent download <torrent-id> where <torrent-id> can be:

I have never done any go, but the torrengo source code seems fairly easy to understand, so I though I might have a go (haha!) as a first dive into the language and try a pull request next week if you're ok.

juliensalinas commented 4 years ago

If webtorrent is behaving the way you describe it might be an easy one. You'd need to add the new webtorrent download command here: https://github.com/juliensalinas/torrengo/blob/609e11d10000281d805aa6fec12e93284a70fd5d/torrengo.go#L592 and add a new option in the user interface, or maybe simply remove all other options if you don't need them: https://github.com/juliensalinas/torrengo/blob/609e11d10000281d805aa6fec12e93284a70fd5d/torrengo.go#L570

Enjoy your first Go program then! :)