max-mapper / torrent

download torrents with node from the CLI
https://www.npmjs.org/package/torrent
633 stars 78 forks source link

Support for a torrent URL in lieu of a magnet link or .torrent file #28

Closed hackergrrl closed 9 years ago

hackergrrl commented 9 years ago

It would be swell if I could run a command like

torrent "http://releases.ubuntu.com/14.10/ubuntu-14.10-desktop-amd64.iso.torrent"

and have it grab the torrent file and act as though I had passed in the torrent locally.

LinusU commented 9 years ago

Or comply with the unix philosophy and read torrent data from stdin.

curl "http://releases.ubuntu.com/14.10/ubuntu-14.10-desktop-amd64.iso.torrent" | torrent

hackergrrl commented 9 years ago

Neat -- I didn't realize that torrent happily read torrent data from stdin. Thanks for that.

I think it's reasonable either way, but I suggested the feature because torrent already accepts both magnet URLs and torrent files.

LinusU commented 9 years ago

Sorry, I didn't mean to say that it works, only that I think that is should work.

It does work for info and ls though :) but not when downloading

LinusU commented 9 years ago

See #31

LinusU commented 9 years ago

torrent now supports reading from stdin and that is the preferred method of downloading torrents from http.

curl "http://releases.ubuntu.com/14.10/ubuntu-14.10-desktop-amd64.iso.torrent" | torrent