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

Display info hash on commandline for seed option #335

Merged
merged 1 commit into from Jun 1, 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

Display info hash on commandline for seed option

Fix webtorrent seed doesn't show info hash

Fixes #330
  • Loading branch information
jcytong committed May 31, 2015
commit 27a2d7d9ed08932a64961500acf3f28ff976eb6b
@@ -483,7 +483,10 @@ function drawTorrent (torrent) {
'{green:' + (seeding ? 'seeding' : 'downloading') + ':} ' +
'{bold:' + torrent.name + '}'
)
if (seeding) clivas.line('{green:magnet uri:} ' + torrent.magnetURI)
if (seeding) {
clivas.line('{green:magnet uri:} ' + torrent.magnetURI)
clivas.line('{green:info hash:} ' + torrent.infoHash)
}
clivas.line(
'{green:speed: }{bold:' + prettyBytes(speed) + '/s} ' +
'{green:downloaded:} {bold:' + prettyBytes(torrent.swarm.downloaded) + '}' +
ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.