Open finnp opened 9 years ago
+1 for this feature.
I was thinking of taking on this issue. Is there a specific design I should use for inputting a single file torrent download?
torrent <magnet link OR path to .torrent file> {-f single torrent file}
torrent singlefile <magnet link OR path to .torrent file> <specific file>
this could support multiple selected filestorrent <magnet link OR path to .torrent file> <specific file>
again could support multiple selected files, however args is currently passed through to index.js this way.I wish that torrent
only supported reading torrent files from stdin, the usage would be so nice then :)
Personally, I think that I prefer the -f
flag. It should support specifying the flag more than once to download multiple files thought.
example
torrent ubuntu-14.04.iso.torrent -f ubuntu-14.04.iso
torrent popular-linux.torrent -f ubuntu-14.04.iso -f debian-wheezy.iso -f fedora-22.iso
Another alternative is to provide a secondary tool. I don't know the torrent file specification well enough to comment on wether that would be a feasible route to take.
example
cat ubuntu-14.04.iso.torrent | torrent-select ubuntu-14.04.iso | torrent
cat popular-linux.torrent | torrent-select ubuntu-14.04.iso debian-wheezy.iso fedora-22.iso | torrent
@maxogden What do you prefer?
Hey,
it would be cool if you could somehow select specific files to download from a torrent.
Like e.g. this archive.org torrent includes several encoding versions in one torrent, but I would like to download just one of them: https://archive.org/download/Time-lapseAstronautPhotographyOfEarthfebruary32012/Time-lapseAstronautPhotographyOfEarthfebruary32012_archive.torrent
Not yeat sure show torrent files work, but maybe it would also be possible to create a module for creating new torrent with only the desired file(s) in it:
Best, Finn