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

Add torrent.path property and update README with new properties #410

Merged
merged 3 commits into from Aug 28, 2015
Merged
Changes from all commits
Commits
File filter...
Filter file types
Jump to…
Jump to file or symbol
Failed to load files and symbols.

Always

Just for now

@@ -333,6 +333,18 @@ the file has.

The attached [bittorrent-swarm](https://github.com/feross/bittorrent-swarm) instance.

#### `torrent.received`

Get total bytes received from peers (including invalid data)

#### `torrent.downloaded`

Get total bytes received from peers (excluding invalid data)

#### `torrent.path`

Get the torrent download location

#### `torrent.destroy()`

Alias for `client.remove(torrent)`.
@@ -99,6 +99,11 @@ Object.defineProperty(Torrent.prototype, 'timeRemaining', {
}
})

// Torrent Path
Object.defineProperty(Torrent.prototype, 'path', {
get: function () { return this._path; }
})

// Bytes completed (excluding invalid data)
Object.defineProperty(Torrent.prototype, 'downloaded', {
get: function () {
ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.