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

Feature: torrent creation #48

Closed
feross opened this issue Apr 20, 2014 · 2 comments
Closed

Feature: torrent creation #48

feross opened this issue Apr 20, 2014 · 2 comments
Labels

Comments

@feross
Copy link
Member

@feross feross commented Apr 20, 2014

I have no immediate plans to implement this, but adding an issue here for when I get around to it.

@feross feross added the enhancement label Apr 20, 2014
@transitive-bullshit

This comment has been minimized.

Copy link
Member

@transitive-bullshit transitive-bullshit commented May 12, 2014

I'd like to help with this, but where should it reside and look like?

Here's one possibility:

/**
 * Creates a new torrent from the local file or directory pointed to by `path`.
 * @returns Buffer containing torrent contents
 * @param {string} path  filesystem path to file or directory containing files for torrent
 * @param {Object} opts  optional creation params
 * @param {Array<string>} opts.announce   tracker urls to add to the torrent
 * @param {string} opts.comment           user-defined comment to add to torrent
 * @param {Boolean} opts.private          whether or not to create a private torrent (defaults to false)
 */
Client.prototype.createTorrent = function (path, opts) {
   ...
}

We'll need to have the ability to add Torrents to a Client that are backed by existing data to have more solid offline tests and to support seeding without downloading and seeding partially downloaded torrents. This is definitely related to torrent creation, but I'm not sure how all the pieces should fit together here.

@feross

This comment has been minimized.

Copy link
Member Author

@feross feross commented May 22, 2014

Last night, I published create-torrent, a module for creating torrents. I think it belongs inside webtorrent.app, similar to how apps like transmission have torrent creation functionality.

Moving this to https://github.com/feross/webtorrent.app/issues/19

@feross feross closed this May 22, 2014
@lock lock bot locked as resolved and limited conversation to collaborators May 7, 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.