Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Downloading specific files from a torrent #33

Open
finnp opened this issue Apr 12, 2015 · 3 comments
Open

Downloading specific files from a torrent #33

finnp opened this issue Apr 12, 2015 · 3 comments

Comments

@finnp
Copy link

finnp commented Apr 12, 2015

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:

torrent-select abc.mpeg < input.torrent > output.torrent

Best,
Finn

@iamtekeste
Copy link

+1 for this feature.

@zoo1
Copy link

zoo1 commented Aug 10, 2015

I was thinking of taking on this issue. Is there a specific design I should use for inputting a single file torrent download?

  • Via -f ex: torrent <magnet link OR path to .torrent file> {-f single torrent file}
  • Via a new command torrent singlefile <magnet link OR path to .torrent file> <specific file> this could support multiple selected files
  • Via additional files after the current download torrent <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.

@LinusU
Copy link
Collaborator

LinusU commented Aug 10, 2015

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants