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

Need more feature like choosing which file to downlad before download #1426

Closed
prashantrijal96 opened this issue Jun 30, 2018 · 1 comment
Closed

Comments

@prashantrijal96
Copy link

@prashantrijal96 prashantrijal96 commented Jun 30, 2018

Hi everyone I was thinking what if we can choose which file to download before downloading all of them.

@SilentBot1

This comment has been minimized.

Copy link
Member

@SilentBot1 SilentBot1 commented Jun 30, 2018

Hey @prashantrijal96,

If you know which files from the torrent you want, this is currently achievable via setting torrent.so within client infohash event to a CSV string containing the desired files e.g. "0,2-4" which will select file 0, 2, 3 and 4, or if a magnetURI is used to add the torrent to the client, the &so parameter described in BEP53 is supported for selecting only specific files.

If the desired files are unknown, you could iterate through the torrent.files array in the client metadata event, calling.deselect() on all files, then .select() on any files which match your criteria, such as file extension, file length, ect.

Hope this helps,
If this doesn't solve your question, feel free to re-open the issue!

@SilentBot1 SilentBot1 closed this Jun 30, 2018
@lock lock bot locked as resolved and limited conversation to collaborators Sep 28, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.