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

download from torent file #1566

Closed
Ascolon opened this issue Jan 2, 2019 · 3 comments
Closed

download from torent file #1566

Ascolon opened this issue Jan 2, 2019 · 3 comments
Labels

Comments

@Ascolon
Copy link

@Ascolon Ascolon commented Jan 2, 2019

Hey. I have a torrent file.
How can I start downloading data on this file and where will I save the data and can I know whether to specify the path to where it will be saved.
I tried it like

client.add('file.torrent', function (torrent) {
                        // Got torrent metadata!
            console.log('Client is downloading:', torrent.infoHash);

            torrent.files.forEach(function (file) {
                console.log(file);
                // Display the file by appending it to the DOM. Supports video, audio, images, and
                // more. Specify a container element (CSS selector or reference to DOM node).
                file.appendTo('body')
            });
        });

this but nothing happens

@DiegoRBaquero

This comment has been minimized.

Copy link
Member

@DiegoRBaquero DiegoRBaquero commented Jan 3, 2019

Did you get any errors?

Is this on the browser? Node.js?

@rickylawson

This comment has been minimized.

Copy link

@rickylawson rickylawson commented Feb 7, 2019

        client.add('file.torrent', {path: './download'}, function (torrent) {
            torrent.files.forEach(function (file) {
                console.log(file.path);
            });
        });
@stale

This comment has been minimized.

Copy link

@stale stale bot commented May 8, 2019

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.

@stale stale bot added the stale label May 8, 2019
@stale stale bot closed this May 15, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Linked pull requests

Successfully merging a pull request may close this issue.

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